March 2019
Intermediate to advanced
708 pages
17h 9m
English
Say we have a UCLASS() macro as follows:
UCLASS()
class MYPROJECT_API AWarrior : public AActor
{
//TArray< FSoundEffect > Greets; // Incorrect
UPROPERTY() TArray< FSoundEffect > Greets; // Correct
};
You'd have to list the TArray member as UPROPERTY() for it to be properly reference-counted. If you don't do so, you'll get an unexpected memory error-type bug sitting about in the code.
Read now
Unlock full access