UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeDialoguePlayer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
7#include "Sound/SoundNode.h"
8#include "SoundNodeDialoguePlayer.generated.h"
9
10class FAudioDevice;
12class UDialogueWave;
13struct FActiveSound;
15struct FWaveInstance;
16
20UCLASS(hidecategories = Object, editinlinenew, MinimalAPI, meta = (DisplayName = "Dialogue Player"))
22{
24
25 UPROPERTY(EditAnywhere, Category=DialoguePlayer)
26 FDialogueWaveParameter DialogueWaveParameter;
27
28 /* Whether the dialogue line should be played looping */
29 UPROPERTY(EditAnywhere, Category=DialoguePlayer)
30 uint32 bLooping:1;
31
32public:
33
34 ENGINE_API UDialogueWave* GetDialogueWave() const;
35 ENGINE_API void SetDialogueWave(UDialogueWave* Value);
36
37 // Subtitles need to be able to grab the UDialogueSoundWaveProxy to for localized text and duration.
38 ENGINE_API const UDialogueSoundWaveProxy* GetContextualDialogueSoundWaveProxy() const;
39
40 //~ Begin USoundNode Interface
41 virtual int32 GetMaxChildNodes() const override;
42 virtual float GetDuration();
44 virtual void ParseNodes( FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
45#if WITH_EDITOR
46 virtual FText GetTitle() const override;
47#endif
48 //~ End USoundNode Interface
49};
50
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::UPTRINT UPTRINT
An unsigned integer the same size as a pointer.
Definition Platform.h:1146
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
int32 ParseParams(const FString &ParamStr, TArray< FString > &OutArray)
Definition NativeJSScripting.cpp:193
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition AudioDevice.h:417
Definition Text.h:385
Definition Array.h:670
Definition DialogueSoundWaveProxy.h:18
Definition DialogueWave.h:84
Definition SoundNodeDialoguePlayer.h:22
virtual int32 GetNumSounds(const UPTRINT NodeWaveInstanceHash, FActiveSound &ActiveSound) const
Definition SoundNodeDialoguePlayer.h:43
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition DialogueTypes.h:66
Definition ActiveSound.h:64
Definition Audio.h:180
FActiveSound * ActiveSound
Definition Audio.h:208