Navigation
Unreal Engine C++ API Reference > Plugins > Niagara
References
Module | Niagara |
Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraSystemInstance.h |
Include | #include "NiagaraSystemInstance.h" |
Syntax
class FNiagaraSystemInstance
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint32 | ActiveGPUEmitterCount | |
![]() |
FInstanceParameters | GatheredInstanceParameters | |
![]() |
int32 | GPUDataInterfaceInstanceDataSize | |
![]() |
TArray< TPair< TWeakObjectPtr< UNiagaraDataInterface >, int32 > > | GPUDataInterfaces | |
![]() |
bool | GPUParamIncludeInterpolation | |
![]() |
ENiagaraSystemInstanceState | SystemInstanceState | |
![]() |
uint32 | TotalGPUParamSize | Transient data that is accumulated during tick. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FNiagaraSystemInstance
(
UWorld& InWorld, |
Creates a new Niagara system instance. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Cleanup |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Activate
(
EResetMode InResetMode |
|
![]() |
void | AdvanceSimulation
(
int32 TickCountToSimulate, |
Manually advances this system's simulation by the specified number of ticks and tick delta. |
![]() ![]() |
bool | AllocateSystemInstance
(
FNiagaraSystemInstancePtr& OutSystemInstanceAllocation, |
|
![]() |
void | Void RebindParameterCollection(UNiagaraParameterCollectionInstance* OldInstance, UNiagaraParameterCollectionInstance* NewInstance); | |
![]() ![]() |
ETickingGroup | Calculates which tick group the instance should be in. | |
![]() |
void | Cleanup () |
|
![]() |
void | ||
![]() |
void | ||
![]() |
void | Complete
(
bool bExternalCompletion |
|
![]() |
FNiagaraDataSet * | CreateEventDataSet
(
FName EmitterName, |
|
![]() |
void | Deactivate
(
bool bImmediate |
|
![]() ![]() |
bool | DeallocateSystemInstance
(
FNiagaraSystemInstancePtr& SystemInstanceAllocation |
|
![]() ![]() |
void | Dump () |
Dumps all of this systems info to the log. |
![]() |
void | DumpTickInfo
(
FOutputDevice& Ar |
Dumps information about the instances tick to the log |
![]() |
FNiagaraEmitterParameters & | EditEmitterParameters
(
int32 EmitterIdx |
|
![]() ![]() |
void | EvaluateBoundFunction
(
FName FunctionName, |
|
![]() |
void | FinalizeTick_GameThread
(
bool bEnqueueGPUTickIfNeeded |
Final phase of system instance tick. |
![]() |
void * | FindDataInterfaceInstanceData
(
const UNiagaraDataInterface* Interface |
Returns the instance data for a particular interface for this System. |
![]() ![]() |
const void * | FindDataInterfaceInstanceData
(
const UNiagaraDataInterface* Interface |
|
![]() |
int32 | FindDataInterfaceInstanceDataIndex
(
UNiagaraDataInterface* Interface |
|
![]() |
TDataType * | FindTypedDataInterfaceInstanceData
(
const UNiagaraDataInterface* Interface |
|
![]() ![]() |
const TDataType * | FindTypedDataInterfaceInstanceData
(
const UNiagaraDataInterface* Interface |
|
![]() |
void | Only call from within the script execution states. Does nothing if not capturing a frame. | |
![]() |
void | ||
![]() |
void | ||
![]() |
TArray< TSharedPtr< struct FNiagaraScriptDebuggerInfo, ESPMode::ThreadSafe > > * | Only call from within the script execution states. Value is null if not capturing a frame. | |
![]() |
TSharedPtr< struct FNiagaraScriptDebuggerInfo, ESPMode::ThreadSafe > | GetActiveCaptureWrite
(
const FName& InHandleName, |
Only call from within the script execution states. Value is nullptr if not capturing a frame. |
![]() |
ENiagaraExecutionState | ||
![]() ![]() |
float | GetAge () |
|
![]() ![]() |
bool | ||
![]() |
USceneComponent * | ||
![]() ![]() |
FNiagaraGpuComputeDispatchInterface * | ||
![]() ![]() |
const FString & | ||
![]() |
const void | GetDataInterfaceInstanceDataInfo
(
int32 Index, |
|
![]() |
FNiagaraEmitterInstance * | GetEmitterByID
(
FGuid InID |
|
![]() ![]() |
TConstArrayView< FNiagaraEmitterExecutionIndex > | ||
![]() ![]() |
FBox | GetEmitterFixedBounds
(
FName EmitterName |
|
![]() ![]() |
const FNiagaraEmitterParameters & | GetEmitterParameters
(
int32 EmitterIdx, |
|
![]() ![]() |
const TArray< TSharedRef< FNiagaraEmitterInstance, ESPMode::ThreadSafe > > & | GetEmitters () |
|
![]() |
TArray< TSharedRef< FNiagaraEmitterInstance, ESPMode::ThreadSafe > > & | GetEmitters () |
|
![]() ![]() |
FNiagaraDataSet * | GetEventDataSet
(
FName EmitterName, |
|
![]() ![]() |
ERHIFeatureLevel::Type | ||
![]() ![]() |
const FNiagaraGlobalParameters & | GetGlobalParameters
(
bool PreviousFrame |
|
![]() ![]() |
FNiagaraSystemInstanceID | GetId () |
|
![]() |
FNiagaraParameterStore & | ||
![]() ![]() |
bool | ||
![]() ![]() |
float | ||
![]() ![]() |
const FBox & | ||
![]() |
float | Calculates the distance to use for distance based LODing / culling. | |
![]() ![]() |
FNiagaraLWCConverter | GetLWCConverter
(
bool bLocalSpaceEmitter |
|
![]() ![]() |
FTransform | GetLWCSimToWorld
(
bool bLocalSpaceEmitter |
|
![]() ![]() |
const FVector3f & | GetLWCTile () |
|
![]() ![]() |
float | ||
![]() |
FNiagaraUserRedirectionParameterStore * | ||
![]() ![]() |
const FNiagaraUserRedirectionParameterStore * | ||
![]() ![]() |
const FNiagaraOwnerParameters & | GetOwnerParameters
(
bool PreviousFrame |
|
![]() |
UNiagaraParameterCollectionInstance * | GetParameterCollectionInstance
(
UNiagaraParameterCollection* Collection |
|
![]() ![]() |
uint32 | GetParameterIndex
(
bool PreviousFrame |
|
![]() ![]() |
const FNiagaraPerInstanceDIFuncInfo & | GetPerInstanceDIFunction
(
ENiagaraSystemSimulationScript ScriptType, |
|
![]() ![]() |
UActorComponent * | ||
![]() ![]() |
int32 | ||
![]() ![]() |
ENiagaraExecutionState | ||
![]() |
TSharedPtr< FNiagaraEmitterInstance, ESPMode::ThreadSafe > | GetSimulationForHandle
(
const FNiagaraEmitterHandle& EmitterHandle |
Gets the simulation for the supplied emitter handle. |
![]() ![]() |
UNiagaraSystem * | GetSystem () |
|
![]() |
FNDIStageTickHandler * | ||
![]() ![]() |
FBox | ||
![]() |
FNiagaraSystemGpuComputeProxy * | ||
![]() ![]() |
int32 | ||
![]() ![]() |
const FNiagaraSystemParameters & | GetSystemParameters
(
bool PreviousFrame |
|
![]() ![]() |
TSharedPtr< FNiagaraSystemSimulation, ESPMode::ThreadSafe > | ||
![]() ![]() |
ENiagaraTickBehavior | Get the current tick behavior | |
![]() ![]() |
int32 | GetTickCount () |
|
![]() ![]() |
UWorld * | GetWorld () |
|
![]() ![]() |
FNiagaraWorldManager * | ||
![]() ![]() |
const FTransform & | Gets the current world transform of the system | |
![]() |
bool | Handles completion of the system and returns true if the system is complete. | |
![]() |
bool | ||
![]() |
bool | Void SetHasGPUEmitters(bool bInHasGPUEmitters) { bHasGPUEmitters = bInHasGPUEmitters; } | |
![]() ![]() |
bool | ||
![]() |
void | Init
(
bool bInForceSolo |
Initializes this System instance to simulate the supplied System. |
![]() |
void | InitGPUTick
(
FNiagaraGPUSystemTick& OutTick |
|
![]() ![]() |
bool | IsComplete () |
Int32 GetNumParticles(int32 EmitterIndex) const { return ParameterNumParticleBindings[EmitterIndex].GetValue(); } float GetSpawnCountScale(int32 EmitterIndex) const { return ParameterSpawnCountScaleBindings[EmitterIndex].GetValue(); } |
![]() ![]() |
bool | IsDisabled () |
|
![]() ![]() |
bool | IsPaused () |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | IsReadyToRun () |
|
![]() ![]() |
bool | IsSolo () |
|
![]() |
void | ManualTick
(
float DeltaSeconds, |
|
![]() ![]() |
bool | NeedsGPUTick () |
|
![]() |
FOnDestroyed & | OnDestroyed () |
|
![]() |
FOnInitialized & | Gets a multicast delegate which is called whenever this instance is initialized with an System asset. | |
![]() |
void | OnPooledReuse
(
UWorld& NewWorld |
|
![]() |
FOnReset & | OnReset () |
Gets a multicast delegate which is called whenever this instance is reset due to external changes in the source System asset. |
![]() |
void | ||
![]() |
bool | QueryCaptureResults
(
const FGuid& RequestId, |
Poll for previous frame capture requests. |
![]() |
void | ||
![]() |
bool | RequestCapture
(
const FGuid& RequestId |
Request that this simulation capture a frame. Cannot capture if disabled or already completed. |
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() |
void | Reset
(
EResetMode Mode |
Requests the the simulation be reset on the next tick. |
![]() |
void | SetActualExecutionState
(
ENiagaraExecutionState InState |
|
![]() |
void | SetEmitterEnable
(
FName EmitterName, |
|
![]() |
void | SetEmitterFixedBounds
(
FName EmitterName, |
|
![]() |
void | SetForceSolo
(
bool bForceSolo |
|
![]() |
void | SetGpuComputeDebug
(
bool bEnableDebug |
|
![]() |
void | SetLastRenderTime
(
float TimeSeconds |
|
![]() |
void | SetLODDistance
(
float InLODDistance, |
|
![]() |
void | SetOnComplete
(
const FOnComplete& InOnCompleteDelegate |
Gets a multicast delegate which is called whenever this instance is complete. |
![]() |
void | SetOnPostTick
(
const FOnPostTick& InPostTickDelegate |
Gets a multicast delegate which is called after this instance has finished ticking for the frame on the game thread |
![]() |
void | SetPaused
(
bool bInPaused |
|
![]() |
void | SetPendingFinalize
(
FNiagaraSystemInstanceFinalizeRef InFinalizeRef |
|
![]() |
void | SetRandomSeedOffset
(
int32 Offset |
|
![]() |
void | SetRequestedExecutionState
(
ENiagaraExecutionState InState |
|
![]() |
void | SetSolo
(
bool bInSolo |
|
![]() |
void | SetSystemFixedBounds
(
const FBox& InLocalBounds |
|
![]() |
void | SetSystemSignificanceIndex
(
int32 InIndex |
The significant index for this component. |
![]() |
void | SetTickBehavior
(
ENiagaraTickBehavior NewTickBehavior |
Set a new tick behavior, this will not move the instance straight away and will wait until the next time it is evaluated |
![]() |
void | SetWarmupSettings
(
int32 WarmupTickCount, |
|
![]() |
void | SetWorldTransform
(
const FTransform& InTransform |
Sets the world transform |
![]() ![]() |
bool | Only call from within the script execution states. Value is false if not capturing a frame. | |
![]() |
void | SimCacheTick_Concurrent
(
UNiagaraSimCache* SimCache |
Concurrent work for SimCache tick |
![]() |
void | SimCacheTick_GameThread
(
UNiagaraSimCache* SimCache, |
Ticks the system using the a SimCache. |
![]() |
void | Tick_Concurrent
(
bool bEnqueueGPUTickIfNeeded |
Secondary phase of the system instance tick that can be executed on any thread. |
![]() |
void | Tick_GameThread
(
float DeltaSeconds |
Initial phase of system instance tick. Must be executed on the game thread. |
![]() |
void | TickDataInterfaces
(
float DeltaSeconds, |
Perform per-tick updates on data interfaces that need it. |
![]() |
void | ||
![]() |
void | TickInstanceParameters_GameThread
(
float DeltaSeconds |
|
![]() |
void | UnbindParameters
(
bool bFromComplete |
|
![]() ![]() |
bool | UsesCollection
(
const UNiagaraParameterCollection* Collection |
|
![]() |
void | WaitForConcurrentTickAndFinalize
(
bool bEnsureComplete |
Wait for any pending concurrent work to complete, must be called on the GameThread. |
![]() |
void | WaitForConcurrentTickDoNotFinalize
(
bool bEnsureComplete |
Wait for any pending concurrent work to complete, must be called on the GameThread. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FInstanceParameters |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EResetMode | Defines modes for resetting the System instance. |
Typedefs
Name | Description |
---|---|
EmitterEventKey | Registered events for each of the emitters |
EventDataSetMap | |
FOnComplete | |
FOnDestroyed | |
FOnInitialized | |
FOnPostTick | |
FOnReset |
Constants
Name | Description |
---|---|
ParameterBufferCount |