How to define an "In Editor editable" Array of actors?

Hello everyone,

I know if I define something like this in my C++ actor code then I am able to add and edit contents of the array in editor:

UPROPERTY(VisibleAnyWhere, Category = "Array")
TArray<FString> Strings;

but after I tried to replace FString with AActor* , the array was not editable in Detail panel anymore, Anybody know how to make that happen?

Your UPROPERTY parameter says “VisibleAnyWhere”. First its “VisibleAnywhere” (small w) and second, have you tried using “EditAnywhere”?

Here are the Parameters for UPROPERTY.

It worked for string type with capital W, but EditAnywhere fixed the issue, Thanks. :smiley: