UNiagaraScriptSource::AddModuleIfMissing

Adds a module if it isn't already in the graph.

Windows
MacOS
Linux

Override Hierarchy

UNiagaraScriptSourceBase::AddModuleIfMissing()

UNiagaraScriptSource::AddModuleIfMissing()

References

Module

NiagaraEditor

Header

/Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/NiagaraScriptSource.h

Include

#include "NiagaraScriptSource.h"

Source

/Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/NiagaraScriptSource.cpp

Syntax

virtual bool AddModuleIfMissing
(
    FString ModulePath,
    ENiagaraScriptUsage Usage,
    bool & bOutFoundModule
)

Remarks

Adds a module if it isn't already in the graph. If the module isn't found bOutFoundModule will be false. If it is found and it did need to be added, the function returns true. If it already exists, it returns false.

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