Navigation
API > API/Plugins > API/Plugins/Niagara
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNiagaraMergeable
- UNiagaraDataInterfaceBase
- UNiagaraDataInterface
- UNiagaraDataInterfaceAudioPlayer
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceAudioPlayer.h |
| Include | #include "NiagaraDataInterfaceAudioPlayer.h" |
Syntax
UCLASS (EditInlineNew, Category="Audio", Meta=(DisplayName="Audio Player"), MinimalAPI)
class UNiagaraDataInterfaceAudioPlayer : public UNiagaraDataInterface
Remarks
This Data Interface can be used to play one-shot audio effects driven by particle data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< USoundAttenuation > | Attenuation | Optional sound attenuation setting to use | |
| bool | bAllowLoopingOneShotSounds | Playing looping sounds as persistent audio is not a problem, as the sound is stopped when a particle dies, but one-shot audio outlives the niagara system and can never be stopped. | |
| bool | bLimitPlaysPerTick | ||
| bool | bOnlyActiveDuringGameplay | If true then this data interface only processes sounds during active gameplay. | |
| bool | bStopWhenComponentIsDestroyed | If false then it the audio component keeps playing after the niagara component was destroyed. | |
| TObjectPtr< USoundConcurrency > | Concurrency | Optional sound concurrency setting to use | |
| FNiagaraUserParameterBinding | ConfigurationUserParameter | If bound to a valid user parameter object of type UNiagaraDataInterfaceAudioPlayerSettings, then configured settings like sound attenuation are set via the user parameter. | |
| int32 | MaxPlaysPerTick | This sets the max number of sounds played each tick. | |
| TArray< FName > | ParameterNames | A set of parameter names that can be referenced via index when setting sound cue parameters on persistent audio | |
| TObjectPtr< USoundBase > | SoundToPlay | Reference to the audio asset to play |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UNiagaraDataInterfaceAudioPlayer
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | PlayOneShotAudio
(
FVectorVMExternalFunctionContext& Context |
||
| void | PlayPersistentAudio
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetInitialParameterBool
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetInitialParameterFloat
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetInitialParameterInteger
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetParameterBool
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetParameterFloat
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetParameterInteger
(
FVectorVMExternalFunctionContext& Context |
||
| void | SetPausedState
(
FVectorVMExternalFunctionContext& Context |
||
| void | UpdateLocation
(
FVectorVMExternalFunctionContext& Context |
||
| void | UpdatePitch
(
FVectorVMExternalFunctionContext& Context |
||
| void | UpdateRotation
(
FVectorVMExternalFunctionContext& Context |
||
| void | UpdateVolume
(
FVectorVMExternalFunctionContext& Context |
Overridden from UNiagaraDataInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | CanExecuteOnTarget
(
ENiagaraSimTarget Target |
||
| bool | CopyToInternal
(
UNiagaraDataInterface* Destination |
||
| void | DestroyPerInstanceData
(
void* PerInstanceData, |
Destroys the per instance data for this interface. | |
| bool | Equals
(
const UNiagaraDataInterface* Other |
Determines if this DataInterface is the same as another. | |
| void | GetFunctionsInternal
(
TArray< FNiagaraFunctionSignature >& OutFunctions |
||
| void | GetVMExternalFunction
(
const FVMExternalFunctionBindingInfo& BindingInfo, |
Returns the delegate for the passed function signature. | |
| bool | |||
| bool | |||
| bool | InitPerInstanceData
(
void* PerInstanceData, |
Initializes the per instance data for this interface. | |
| int32 | Returns the size of the per instance data for this interface. | ||
| bool | PerInstanceTick
(
void* PerInstanceData, |
Ticks the per instance data for this interface, if it has any. | |
| bool | PerInstanceTickPostSimulate
(
void* PerInstanceData, |
||
| bool | When set to true the simulation may not complete in the same frame it started, allowing maximum overlap with the GameThread. | ||
| bool | UpgradeFunctionCall
(
FNiagaraFunctionSignature& FunctionSignature |
Allows data interfaces the opportunity to rename / change the function signature and perform an upgrade. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |