March 2019
Intermediate to advanced
708 pages
17h 9m
English
Instantiating a UObject class using NewObject is simple. ConstructObject will instantiate an object of the blueprint-class type, and return a C++ pointer of the correct type.
Unfortunately, NewObject has a nasty first parameter that requires you to pass GetTransientPackage() with each call.
Do not use the keyword new when constructing your UE4 UObject derivative! It will not be properly memory-managed.
Read now
Unlock full access