[UE4] Garbage collection and dynamically allocated memory (C++)

Dynamically create UObject with ConstructObject() or NewObject();

Dynamically create an AActor with SpawnActor().

 

If it is created in the constructor, use CreateDefaultSubobject() or ConstructObject() first; in non-constructor, only SpawnActor() or NewObject() can be used.

 

Garbage Collection & Dynamic Memory Allocation

https://wiki.unrealengine.com/Garbage_Collection_%26_Dynamic_Memory_Allocation

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326780574&siteId=291194637