Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/FMLAdapter__NewObject
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/MLAdapterTypes.h |
| Include | #include "MLAdapterTypes.h" |
namespace FMLAdapter
{
template<class T>
T * FMLAdapter::NewObject
(
UObject * Outer
)
}
Remarks
MLAdapter-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.
Note: objects created this way won't go away even if there's nothing referencing them until we clear the EInternalObjectFlags::Async flag