What happens to the memory in the case below? And what would be the best way to deal with this?
UPROPERTY() UObject* MyObject;
MyObject = NewObject<UNormalObject>(); **// some time later...** **// What happens to the previous content of MyObject? Is it deleted?** MyObject = NewObject<USpecialObject>();
I’m sorry if this question is a duplicate, I haven’t found similar posts.