UNiagaraDataInterfaceParticleRead

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceParticleRead.h

Include

#include "NiagaraDataInterfaceParticleRead.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(EditInlineNew, Category="ParticleRead", Meta=(DisplayName="Particle Attribute Reader"))
class UNiagaraDataInterfaceParticleRead : public UNiagaraDataInterface

Variables

Name Description

Public variable UProperty Category, EditAnywhere

FString

 

EmitterName

Constructors

Name Description

Public function

UNiagaraDataInterfaceParticleRead

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

GetNumParticles

(
    FVectorVMContext& Context
)

Public function

void

 

GetNumSpawnedParticles

(
    FVectorVMContext& Context
)

Public function

void

 

GetParticleIndex

(
    FVectorVMContext& Context
)

Public function

void

 

GetSpawnedIDAtIndex

(
    FVectorVMContext& Context
)

Public function

void

 

ReadBool

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadBoolByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadColor

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadColorByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadFloat

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadFloatByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadID

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadIDByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadInt

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadIntByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadQuat

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadQuatByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadVector2

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadVector2ByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadVector3

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadVector3ByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadVector4

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Public function

void

 

ReadVector4ByIndex

(
    FVectorVMContext& Context,
    FName AttributeToRead
)

Overridden from UNiagaraDataInterface

Name Description

Public function Virtual Const

bool

 

CanExecuteOnTarget

(
    ENiagaraSimTarget Target
)

Protected function Virtual Const

bool

 

CopyToInternal

(
    UNiagaraDataInterface* Destina...
)

Public function Virtual

void

 

DestroyPerInstanceData

(
    void* PerInstanceData,
    FNiagaraSystemInstance* System...
)

Destroys the per instance data for this interface.

Public function Virtual Const

bool

 

Equals

(
    const UNiagaraDataInterface* O...
)

Determines if this DataInterface is the same as another.

Public function Virtual Const

void

 

GetEmitterDependencies

(
    void* PerInstanceData,
    FNiagaraSystemInstance* System...,
    TArray< FNiagaraEmitterInstance...
)

Allows a DI to specify data dependencies between emitters, so the system can ensure that the emitter instances are executed in the correct order.

Public function Virtual

void

 

GetFeedback

(
    UNiagaraSystem* InAsset,
    UNiagaraComponent* InComponent,
    TArray< FNiagaraDataInterfaceError ...,
    TArray< FNiagaraDataInterfaceFeedba...,
    TArray< FNiagaraDataInterfaceFeedba...
)

Query the data interface to give feedback to the end user.

Public function Virtual

bool

 

GetFunctionHLSL

(
    const FNiagaraDataInterfaceGPUParam...,
    const FNiagaraDataInterfaceGenerate...,
    int FunctionInstanceIndex,
    FString& OutHLSL
)

Public function Virtual

void

 

GetFunctions

Gets all the available functions for this data interface.

Public function Virtual

void

 

GetParameterDefinitionHLSL

(
    const FNiagaraDataInterfaceGPUParam...,
    FString& OutHLSL
)

Public function Virtual

void

 

GetVMExternalFunction

(
    const FVMExternalFunctionBindingInf...,
    void* InstanceData,
    FVMExternalFunction& OutFunc
)

Returns the delegate for the passed function signature.

Public function Virtual

bool

 

InitPerInstanceData

(
    void* PerInstanceData,
    FNiagaraSystemInstance* System...
)

Initializes the per instance data for this interface.

Public function Virtual Const

int32

 

PerInstanceDataSize()

Returns the size of the per instance data for this interface.

Public function Virtual

void

 

ProvidePerInstanceDataForRenderThread

(
    void* DataForRenderThread,
    void* PerInstanceData,
    const FNiagaraSystemInstanceID& Sy...
)

Subclasses that wish to work with GPU systems/emitters must implement this.

Overridden from UNiagaraDataInterfaceBase

Name Description

Public function Virtual

void

 

BindParameters

(
    FNiagaraDataInterfaceParametersCS&...,
    const FNiagaraDataInterfaceGPUParam...,
    const FShaderParameterMap& Paramet...
)

Methods that operate on an instance of type FNiagaraDataInterfaceParametersCS*, created by the above CreateComputeParameters() method

Public function Virtual Const

FNiagaraData...

 

CreateComputeParameters()

Constructs the correct CS parameter type for this DI (if any).

Public function Virtual Const

const FTypeL...

 

GetComputeParametersTypeDesc()

Public function Virtual Const

void

 

SetParameters

(
    const FNiagaraDataInterfaceParamete...,
    FRHICommandList& RHICmdList,
    const FNiagaraDataInterfaceSetArgs ...
)

Public function Virtual Const

void

 

UnsetParameters

(
    const FNiagaraDataInterfaceParamete...,
    FRHICommandList& RHICmdList,
    const FNiagaraDataInterfaceSetArgs ...
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

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