Module |
|
Header |
/Engine/Plugins/AI/UE4ML/Source/UE4ML/Public/4MLTypes.h |
Include |
#include "4MLTypes.h" |
namespace F4ML
{
template<class T>
T * F4ML::NewObject
(
UObject * Outer
)
}
UE4ML-flavored new object creation. We're using this with all the objects we intend to access from outside the game-thread (most notably from the rpc calls). This gives us more control over objects' life cycle.
objects created this way won't go away even if there's nothing referencing them until we clear the EInternalObjectFlags::Async flag