Unreal Engine 4.x Scripting with C++ Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

There is another function very similar to NewObject< > called ConstructObject< >. ConstructObject< > provides more parameters in construction, and you may find it useful if you need to initialize certain properties. Otherwise, NewObject works just fine.

You can find out more about the ConstructObject function here:  https://docs.unrealengine.com/en-us/Programming/UnrealArchitecture/Objects/Creation#constructobject.