TArray as UPROPERTY ERROR (UE 4.5.1 and 4.6.1)


I have a AActor class and I have below property

UPROPERTY(EditAnywhere, Category = "UI")
TArray<AActor*> Buttons;

and, in editor, when I try to add any actor to this TArray, it would not add it to TArray.

It notifies me to re-compile the blueprint (which is derrived from the code class that has TArray as UPROPERTY().

Please let me know if I am missing / not understanding something correctly in UE TArray as UPROPERTY().

Its happening for UE 4.5.1 and UE 4.6.1.

Runtime Only

You cant add AActor* to a BP accessible variable in defaults.

I presume you are trying to add in defaults?

You can add in C++ or BP during runtime easily!


So that means I can’t modify one of those variable if I create it to be BP from C++ class?

TArray variable it is, and adding an AActor* to the variable, is not valid?