FMLAdapter::NewObject

MLAdapter-flavored new object creation.

Choose your operating system:

Windows

macOS

Linux

References

Module

MLAdapter

Header

/Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/MLAdapterTypes.h

Include

#include "MLAdapterTypes.h"

Syntax

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.

objects created this way won't go away even if there's nothing referencing them until we clear the EInternalObjectFlags::Async flag