Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Sound
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USoundNode
- USoundNodeAssetReferencer
- USoundNodeModPlayer
- USoundNodeWavePlayer
- USoundNodeAttenuation
- USoundNodeBranch
- USoundNodeConcatenator
- USoundNodeDelay
- USoundNodeDialoguePlayer
- USoundNodeDistanceCrossFade
- USoundNodeParamCrossFade
- USoundNodeDoppler
- USoundNodeEnveloper
- USoundNodeGroupControl
- USoundNodeLooping
- USoundNodeMature
- USoundNodeMixer
- USoundNodeModulator
- USoundNodeModulatorContinuous
- USoundNodeOscillator
- USoundNodeQualityLevel
- USoundNodeRandom
- USoundNodeSoundClass
- USoundNodeSwitch
- USoundNodeWaveParam
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Sound/SoundNode.h |
Include | #include "Sound/SoundNode.h" |
Syntax
class USoundNode : public UObject
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bIsRetainingAudio | |
![]() |
TArray< TObjectPtr< class USoundNode > > | ChildNodes | |
![]() |
TObjectPtr< UEdGraphNode > | GraphNode | Node's Graph representation, used to get position. |
![]() |
FRandomStream | RandomStream | Stream of random numbers to be used by this instance of USoundNode |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
USoundNode
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddReferencedObjects
(
UObject* InThis, |
|
![]() ![]() |
void | Editor interface. | |
![]() ![]() |
void | GetAllNodes
(
TArray< USoundNode* >& SoundNodes |
Returns an array of all (not just active) nodes. |
![]() ![]() |
float | GetDuration () |
Returns the maximum duration this sound node will play for. |
![]() ![]() |
UEdGraphNode * | GetGraphNode () |
|
![]() ![]() ![]() |
FText | GetInputPinName
(
int32 PinIndex |
Get the name of a specific input pin |
![]() ![]() ![]() |
int32 | Returns the maximum number of child nodes this node can possibly have | |
![]() ![]() ![]() |
float | Returns the maximum distance this sound can be heard from. | |
![]() ![]() ![]() |
int32 | Returns the minimum number of child nodes this node must have | |
![]() ![]() |
UPTRINT | GetNodeWaveInstanceHash
(
const UPTRINT ParentWaveInstanceHash, |
Used to create a unique string to identify unique nodes |
![]() ![]() |
UPTRINT | GetNodeWaveInstanceHash
(
const UPTRINT ParentWaveInstanceHash, |
Used to create a unique string to identify unique nodes |
![]() ![]() ![]() |
int32 | GetNumSounds
(
const UPTRINT NodeWaveInstanceHash, |
Returns the number of simultaneous sounds this node instance plays back. |
![]() ![]() ![]() |
FText | GetTitle () |
|
![]() ![]() ![]() |
bool | Returns whether the sound has a sequencer node. | |
![]() ![]() ![]() |
bool | HasDelayNode () |
Returns whether the sound cue has a delay node. |
![]() ![]() |
void | InsertChildNode
(
int32 Index |
|
![]() ![]() ![]() |
bool | Returns true if the sound node is set to play when silent. | |
![]() ![]() |
bool | NotifyWaveInstanceFinished
(
FWaveInstance* WaveInstance |
Notifies the sound node that a wave instance in its subtree has finished. |
![]() ![]() |
void | OnBeginPIE
(
const bool bIsSimulating |
Called as PIE begins |
![]() ![]() |
void | OnEndPIE
(
const bool bIsSimulating |
Called as PIE ends |
![]() ![]() |
void | OverrideLoadingBehaviorOnChildWaves
(
const bool bRecurse, |
When this is called and stream caching is enabled, any wave player sound nodes childed off of this node with loading behavior set to "Inherited" will have their loading behavior updated and their bLoadingBehaviorOverridden flag raised |
![]() ![]() |
void | ParseNodes
(
FAudioDevice* AudioDevice, |
|
![]() |
void | PlaceNode
(
int32 NodeColumn, |
Helper function to set the position of a sound node on a grid |
![]() ![]() |
void | PrimeChildWavePlayers
(
bool bRecurse |
When this is called and stream caching is enabled, any wave player sound nodes childed off of this node will have their audio loaded into the cache. |
![]() ![]() |
void | ReleaseRetainerOnChildWavePlayers
(
bool bRecurse |
|
![]() ![]() |
void | RemoveChildNode
(
int32 Index |
|
![]() ![]() |
void | When called, this will find any child wave players connected to this node and null out their associated USoundWave, allowing the USoundWave to be garbage collected. | |
![]() ![]() |
void | RetainChildWavePlayers
(
bool bRecurse |
When this is called and stream caching is enabled, any wave player sound nodes childed off of this node will have their audio retained into the cache. |
![]() ![]() |
void | SetChildNodes
(
TArray< USoundNode* >& InChildNodes |
Set the entire Child Node array directly, allows GraphNodes to fully control node layout. |
![]() ![]() ![]() |
bool | Returns if this node has been set to be allowed virtual. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BeginDestroy () |
Called before destroying the object. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from UObjectBaseUtility
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Called after load to determine if the object can be a cluster root | |
![]() ![]() ![]() |
bool | Called during cluster construction if the object can be added to a cluster |
Constants
Name | Description |
---|---|
MAX_ALLOWED_CHILD_NODES |