Navigation
API > API/Plugins > API/Plugins/Niagara
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNiagaraEmitter
References
Module | Niagara |
Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraEmitter.h |
Include | #include "NiagaraEmitter.h" |
Syntax
UCLASS&40;MinimalAPI&41;
class UNiagaraEmitter :
public UObject,
public INiagaraParameterDefinitionsSubscriber,
public FNiagaraVersionedObject
Remarks
Niagara Emitters are particle spawners that can be reused for different effects by putting them into Niagara Systems. Emitters render their particles using different renderers, such as Sprite Renderers or Mesh Renderers to produce different effects.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
FText | Category | Category to collate this emitter into for "add new emitter" dialogs. |
![]() ![]() ![]() ![]() |
ENiagaraScriptLibraryVisibility | LibraryVisibility | If this emitter is exposed to the library, or should be explicitly hidden. |
![]() ![]() ![]() ![]() |
FText | TemplateAssetDescription | |
![]() ![]() ![]() ![]() |
ENiagaraScriptTemplateSpecification | TemplateSpecification | |
![]() ![]() |
TObjectPtr< UTexture2D > | ThumbnailImage | Internal: The thumbnail image. |
![]() ![]() ![]() |
FGuid | VersionToOpenInEditor | This is used as a transient value to open a specific version in the editor |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UNiagaraEmitter
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddEventHandler
(
FNiagaraEventScriptProperties EventHandler, |
|
![]() |
void | AddRenderer
(
UNiagaraRendererProperties* Renderer, |
|
![]() |
void | AddSimulationStage
(
UNiagaraSimulationStageBase* SimulationStage, |
|
![]() ![]() |
bool | CanObtainEmitterAttribute
(
const FNiagaraVariableBase& InVarWithUniqueNameNamespace, |
|
![]() ![]() |
bool | CanObtainParticleAttribute
(
const FNiagaraVariableBase& InVar, |
|
![]() ![]() |
bool | CanObtainSystemAttribute
(
const FNiagaraVariableBase& InVar, |
|
![]() ![]() |
bool | CanObtainUserVariable
(
const FNiagaraVariableBase& InVar |
|
![]() |
void | ChangeParentVersion
(
const FGuid& NewParentVersion, |
|
![]() |
void | Makes sure that the default version data is available and fixes old emitter assets. | |
![]() ![]() |
UNiagaraEmitter * | CreateAsDuplicate
(
const UNiagaraEmitter& InEmitterToDuplicate, |
Creates a new emitter by duplicating an existing emitter. |
![]() ![]() |
UNiagaraEmitter * | CreateWithParentAndOwner
(
FVersionedNiagaraEmitter InParentEmitter, |
Creates a new emitter with the supplied emitter as a parent emitter and the supplied system as its owner. |
![]() ![]() |
void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
|
![]() |
UNiagaraEmitter * | DuplicateWithoutMerging
(
UObject* InOuter |
Duplicates this emitter, but prevents the duplicate from merging in changes from the parent emitter. |
![]() ![]() |
void | ForEachVersionData
(
TAction Func |
|
![]() |
void | ForEachVersionData
(
TAction Func |
|
![]() ![]() |
const TSharedPtr< FNiagaraGraphCachedDataBase, ESPMode::ThreadSafe > & | GetCachedTraversalData
(
const FGuid& EmitterVersion |
Get the cached parameter map traversal for this emitter. |
![]() ![]() |
FGuid | GetChangeId () |
Gets a Guid which is updated any time data in this emitter is changed. |
![]() |
FVersionedNiagaraEmitterData * | GetEmitterData
(
const FGuid& VersionGuid |
Returns the emitter data for a specific version or nullptr if no such version is found. |
![]() ![]() |
const FVersionedNiagaraEmitterData * | GetEmitterData
(
const FGuid& VersionGuid |
Returns the emitter data for a specific version or nullptr if no such version is found. |
![]() ![]() |
bool | ||
![]() ![]() |
const FVersionedNiagaraEmitterData * | Returns the emitter data for latest exposed version. | |
![]() |
FVersionedNiagaraEmitterData * | Returns the emitter data for latest exposed version. | |
![]() |
FNiagaraMessageStore & | ||
![]() ![]() |
TStatId | GetStatID
(
bool bGameThread, |
|
![]() ![]() |
const FString & | ||
![]() |
void | HandleVariableRemoved
(
const FNiagaraVariable& InOldVariable, |
Helper method for when a rename has been detected within the graph. |
![]() |
void | HandleVariableRenamed
(
const FNiagaraVariable& InOldVariable, |
Helper method for when a rename has been detected within the graph. |
![]() ![]() |
bool | IsEnabledOnPlatform
(
const FString& PlatformName |
|
![]() ![]() |
bool | Whether or not this emitter is synchronized with its parent emitter. | |
![]() |
TArray< INiagaraMergeManager::FMergeEmitterResults > | Merges in any changes from the parent emitter into this emitter. | |
![]() |
void | MoveRenderer
(
UNiagaraRendererProperties* Renderer, |
|
![]() |
void | MoveSimulationStageToIndex
(
UNiagaraSimulationStageBase* SimulationStage, |
|
![]() ![]() ![]() |
bool | NeedsLoadForTargetPlatform
(
const ITargetPlatform* TargetPlatform |
|
![]() |
void | ||
![]() |
FOnEmitterCompiled & | Callback issued whenever a VM compilation successfully happened (even if the results are a script that cannot be executed due to errors) | |
![]() |
FOnEmitterCompiled & | Callback issued whenever a VM compilation successfully happened (even if the results are a script that cannot be executed due to errors) | |
![]() |
FOnSimStagesChanged & | ||
![]() |
FOnEmitterCompiled & | Callback issued whenever a GPU compilation successfully happened (even if the results are a script that cannot be executed due to errors) | |
![]() |
void | OnPostCompile
(
const FGuid& EmitterVersion |
|
![]() |
FOnPropertiesChanged & | ||
![]() |
FOnRenderersChanged & | ||
![]() |
FOnSimStagesChanged & | ||
![]() ![]() |
void | PostEditChangeVersionedProperty
(
FPropertyChangedEvent& PropertyChangedEvent, |
|
![]() |
void | Helper method for binding the notifications needed for proper editor integration. | |
![]() |
void | RemoveEventHandlerByUsageId
(
FGuid EventHandlerUsageId, |
|
![]() |
void | RemoveRenderer
(
UNiagaraRendererProperties* Renderer, |
|
![]() |
void | RemoveSimulationStage
(
UNiagaraSimulationStageBase* SimulationStage, |
|
![]() |
void | SetEditorData
(
UNiagaraEditorDataBase* InEditorData, |
|
![]() |
void | SetParent
(
const FVersionedNiagaraEmitter& InParent |
|
![]() |
bool | SetUniqueEmitterName
(
const FString& InName |
|
![]() |
void | ||
![]() |
void |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BeginDestroy () |
Called before destroying the object. |
![]() ![]() ![]() |
void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects |
![]() ![]() ![]() |
bool | IsEditorOnly () |
Called during saving to determine if the object is forced to be editor only or not |
![]() ![]() |
void | PostDuplicate
(
EDuplicateMode::Type DuplicateMode |
|
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
![]() ![]() |
void | PostRename
(
UObject* OldOuter, |
Called at the end of Rename(), but only if the rename was actually carried out |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from INiagaraParameterDefinitionsSubscriber
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TArray< UNiagaraScriptSourceBase * > | Get all UNiagaraScriptSourceBase of this subscriber. | |
![]() ![]() |
TArray< UNiagaraEditorParametersAdapterBase * > | Get All adapters to editor only script vars owned directly by this subscriber. | |
![]() ![]() ![]() |
const TArray< FParameterDefinitionsSubscription > & | ||
![]() ![]() |
TArray< FParameterDefinitionsSubscription > & | ||
![]() ![]() ![]() |
FString | Get the path to the UObject of this subscriber. |
Overridden from FNiagaraVersionedObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FGuid | AddNewVersion
(
int32 MajorVersion, |
Creates a new data entry for the given version number. |
![]() ![]() |
void | DeleteVersion
(
const FGuid& VersionGuid |
Deletes the version data for an existing version. |
![]() ![]() |
void | DisableVersioning
(
const FGuid& VersionGuidToUse |
Disables versioning and keeps only the data from the given version guid. |
![]() ![]() |
void | Enables versioning for this emitter asset. | |
![]() ![]() |
void | ExposeVersion
(
const FGuid& VersionGuid |
Changes the exposed version. Does nothing if the guid does not exist in the version data. |
![]() ![]() ![]() |
FNiagaraAssetVersion const * | FindVersionData
(
const FGuid& VersionGuid |
Returns the version data for the given guid, if it exists. Otherwise returns nullptr. |
![]() ![]() ![]() |
TArray< FNiagaraAssetVersion > | Returns all available versions for this emitter. | |
![]() ![]() ![]() |
FNiagaraAssetVersion | Returns the version of the exposed version data (i.e. the version used when adding an emitter to a system) | |
![]() ![]() |
TSharedPtr< FNiagaraVersionDataAccessor > | GetVersionDataAccessor
(
const FGuid& Version |
|
![]() ![]() ![]() |
bool | If true then this script asset uses active version control to track changes. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
PrivateMemberNames |
Typedefs
Name | Description |
---|---|
FOnEmitterCompiled | |
FOnEventHandlersChanged | |
FOnPropertiesChanged | |
FOnRenderersChanged | |
FOnSimStagesChanged |
Constants
Name | Description |
---|---|
EmitterMergeMessageId |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
EParticleAllocationMode | AllocationMode_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
TArray< FString > | AttributesToPreserve_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
bool | bDeterminism_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() |
bool | bExposeToLibrary_DEPRECATED | Deprecated library exposure bool. |
![]() ![]() ![]() |
uint32: 1 | bFixedBounds_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
uint32: 1 | bInterpolatedSpawning_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() |
bool | bIsTemplateAsset_DEPRECATED | Deprecated template asset bool. Use the TemplateSpecification enum instead. |
![]() ![]() ![]() |
bool | bLocalSpace_DEPRECATED | ------------ Most properties below this point are deprecated and stored in the versioned emitter data instead! ------------------------------------------------------------------------------------------ |
![]() ![]() |
uint32: 1 | bOverrideGlobalSpawnCountScale_DEPRECATED | Legacy bool to control overriding the global spawn count scales. |
![]() ![]() ![]() |
uint32: 1 | bRequiresPersistentIDs_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() |
uint32: 1 | bUseMaxDetailLevel_DEPRECATED | Whether to use the min detail or not. |
![]() ![]() |
uint32: 1 | bUseMinDetailLevel_DEPRECATED | Whether to use the min detail or not. |
![]() ![]() ![]() |
FNiagaraEmitterScriptProperties | EmitterSpawnScriptProps_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
FNiagaraEmitterScriptProperties | EmitterUpdateScriptProps_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
FBox | FixedBounds_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() |
FNiagaraDetailsLevelScaleOverrides | GlobalSpawnCountScaleOverrides_DEPRECATED | |
![]() ![]() ![]() |
TObjectPtr< UNiagaraScriptSourceBase > | GraphSource_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() |
int32 | MaxDetailLevel_DEPRECATED | |
![]() ![]() ![]() |
uint32 | MaxGPUParticlesSpawnPerFrame_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() |
int32 | MinDetailLevel_DEPRECATED | |
![]() ![]() ![]() |
TArray< TObjectPtr< UNiagaraScript > > | ParentScratchPadScripts_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
FNiagaraPlatformSet | Platforms_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
int32 | PreAllocationCount_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
int32 | RandomSeed_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
FNiagaraParameterStore | RendererBindings_DEPRECATED | |
![]() ![]() ![]() |
FNiagaraEmitterScalabilityOverrides | ScalabilityOverrides_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
TArray< TObjectPtr< UNiagaraScript > > | ScratchPadScripts_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
ENiagaraSimTarget | SimTarget_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
FNiagaraEmitterScriptProperties | SpawnScriptProps_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
![]() ![]() ![]() |
FNiagaraEmitterScriptProperties | UpdateScriptProps_DEPRECATED | Use property in struct returned from GetEmitterData() instead |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | PreSave
(
FObjectPreSaveContext ObjectSaveContext |
Use version that takes FObjectPreSaveContext instead. |