UNiagaraScript::RequestExternallyManagedAsyncCompile

Request an asynchronous compile for the script, possibly forcing it to compile.

Choose your operating system:

Windows

macOS

Linux

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraScript.h

Include

#include "NiagaraScript.h"

Source

/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraScript.cpp

Syntax

bool RequestExternallyManagedAsyncCompile
(
    const TSharedPtr< FNiagaraCompileRequestDataBase, ESPMode::ThreadSafe > & RequestData,
    const TSharedPtr< FNiagaraCompileRequestDuplicateDataBase, ESPMode::ThreadSafe > & RequestDuplicateData,
    FNiagaraVMExecutableDataId & OutCompileId,
    uint32 & OutAsyncHandle
)

Remarks

Request an asynchronous compile for the script, possibly forcing it to compile. The output values are the compilation id of the data as well as the async handle to gather up the results with. The function returns whether or not any compiles were actually issued.