FNiagaraShaderScript::ModifyCompilationEnvironment

Allow Niagara script the opportunity to modify the compilation environment for GPU simulations.

Choose your operating system:

Windows

macOS

Linux

References

Module

NiagaraShader

Header

/Engine/Plugins/FX/Niagara/Source/NiagaraShader/Public/NiagaraShared.h

Include

#include "NiagaraShared.h"

Source

/Engine/Plugins/FX/Niagara/Source/NiagaraShader/Private/NiagaraShared.cpp

Syntax

virtual void ModifyCompilationEnvironment
(
    EShaderPlatform Platform,
    struct FShaderCompilerEnvironment & OutEnvironment
) const

Remarks

Allow Niagara script the opportunity to modify the compilation environment for GPU simulations. Generally used for data interfaces to inject project defines.