Can't add UObject derived class to TArray in Editor
With the below code I can't seem to be able to create/assign instances of the UObjectChild class to the Objects TArray in the Editor:
It shows the available classes as None or UObjectChild, but when choosing the latter nothing happens.
I don't see what I'm doing wrong here, though it's possible this is not the intended behavior, but I'd like to know in that case.
Anybody have an idea or a possible solution?
Never ever create your components with an FName that has a space inside it!!! (using CreateDefaultSubobject<>())
Lesson learned... Hours wasted over one single space, a single invisible character... Breaking everything.
I'm pretty sure this should be unintended behavior...
Have you tried removing the 'instanced' specifier? After looking at the UPROPERTY page it looks like that specifier may be a little misleading. If that doesn't work, try using TSubclassOf I have a similar container which works in this fashion, but it is declared as such. I'm using an actor, but it should work for your purposes also
answered Jun 16 '17 at 08:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here