It’s quite an old post but is relevant to my work. Is it event possible to garbage collect UTexture2D with UPROPERTY by setting them to nullptr?
I was trying to do this. I created new texture using UTexture2D::CreateTransient method. Then, when I didn’t need it anymore I set texture to nullptr.
I was forcing Garbage Collection but it didn’t run the BeginDestroy of UTexture2D.
I know that texture should be removed using ConditionalBeginDestroy() method, but shouldn’t garbage collector work for every UObjects? (For pure UObjects everything works fine). How about other objects that inherits from UObjects? Which can be garbage collected and which not?