UE4 - Why TArray of UObject I have some issues with the garbage collector but I don’t understand why ?
I have a UObject called “WorldModel” created and stored (pointer with UPROPERTY) in the GameInstance.
In this “WorldModel” UObject I have an array of UObjects called “WorldPlayerModel” (TArray) with the UPROPERTY macro.
When I load a new map, my “WorldModel” is still here, the array of “WorldPlayerModel” too but all the UObjects inside it are destroyed by the garbage collector and nulled.
According to the doc my UObjects should not be destroyed so I don’t understand why ?
Thanks for the help.are garbage collected?