CallOnGameThread

Sends InFunction to be called on the GameThread and waits for the result

Choose your operating system:

Windows

macOS

Linux

References

Module

MLAdapter

Header

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

Include

#include "MLAdapterAsync.h"

Syntax

template<typename RetType>
RetType CallOnGameThread
(
    TFunction< RetType()> InFunction
)

Remarks

Sends InFunction to be called on the GameThread and waits for the result