Get the type stored in a FArrayProperty

Hello, I want to know the type that is inside an FArrayProperty, how to ?

For example, I have a blueprint array of string and in C++ I want to know if its a FString Array/

Thank you in advance for your help.

If you specifically need access to that variable in C++, you should probably define it in C++ and mark it as public so blueprints can modify it.

If you must define it in blueprints rather than in C++, the best thing to do would probably be to export a BlueprintCallable function in C++ that requires a TArray<FString>* as an argument and you can pass it in that way, knowing that the variable is of the type you expect.

I don’t think data is supposed to go the direction that you are suggesting though, defined in the child class and used by the parent class. It seems much better to define it in the parent (C++) and then use it in the child (blueprint).

1 Like