F4ML::NewObject

UE4ML-flavored new object creation.

Windows
MacOS
Linux

References

Module

UE4ML

Header

/Engine/Plugins/AI/UE4ML/Source/UE4ML/Public/4MLTypes.h

Include

#include "4MLTypes.h"

Syntax

namespace F4ML
{
    template<class T>
    T * F4ML::NewObject
    (
        UObject * Outer
    )
}

Remarks

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss