FNiagaraEditorUtilities::GetEmitterHandleForEmitter

Gets an emitter handle from a system and an owned emitter.

Choose your operating system:

Windows

macOS

Linux

References

Module

NiagaraEditor

Header

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

Include

#include "NiagaraEditorUtilities.h"

Source

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

Syntax

namespace FNiagaraEditorUtilities
{
    const FNiagaraEmitterHandle * FNiagaraEditorUtilities::GetEmitterHandleForEmitter
    (
        UNiagaraSystem & System,
        UNiagaraEmitter & Emitter
    )
}

Remarks

Gets an emitter handle from a system and an owned emitter. This handle will become invalid if emitters are added or removed from the system, so in general this value should not be cached across frames.

Returns

The emitter handle for the supplied emitter, or nullptr if the emitter isn't owned by this system.

Parameters

Parameter

Description

System

The source system which owns the emitter handles.

The

emitter to search for in the system.