Predefine a TArray to be used in other classes?

I just ended up creating a C++ class that just holds a TArray<TSubclassOf<MyObject>>. Made the class Blueprintable, and the array EditDefaultsOnly. This let me create blueprints and predefine the collection array.

Added a EditInstaceOnly TArray<TSubclassOf<MyCollectionClass>> in my character class. This lets me do what I want, although I can’t help but feel like there is a better way to do this. Oh well, thanks for the help!

1 Like