non-UPROPERTY UObject garbage collection.
Hi, I am new to UE and C++, By what I understood from c++ intro page , UObjects which are not marked with UPROPERTY will get GCed. here is the ScreenShot of the page.
I wrote one experiment code to understand this which looks like this:
and called GEngine->ForceGarbageCollection(true) from another actor component, which should destroy obj2 but the actor is still animating so obj2 is not destroyed. I misunderstood something or missing something, any help will be appreciated.
Your obj2 is not set
You can use
answered Dec 08 '18 at 05:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here