Skip to content

OnDialogueLineRequested

Member: UAdvancedDialogueComponent::OnDialogueLineRequested
Delegate type: FAdvancedDialogueLineRequested
Exposure: UPROPERTY(BlueprintAssignable)

Alternative expanded-pin line notification. For new custom UI prefer On Dialogue Line Started and its context. Do not present or play the same line from both events.

DECLARE_DYNAMIC_MULTICAST_DELEGATE_NineParams(
FAdvancedDialogueLineRequested,
UAdvancedDialogueSpeaker*, SpeakerAsset,
FGameplayTag, SpeakerTag,
AActor*, SpeakerActor,
FText, SpeakerDisplayName,
FLinearColor, SpeakerNameColor,
UTexture2D*, SpeakerPortrait,
FGameplayTag, ExpressionTag,
USoundBase*, VoiceAudio,
FText, LineText
);

The delegate macro contains the following type/name pairs, as authored in source:

Type Parameter name
UAdvancedDialogueSpeaker* SpeakerAsset
FGameplayTag SpeakerTag
AActor* SpeakerActor
FText SpeakerDisplayName
FLinearColor SpeakerNameColor
UTexture2D* SpeakerPortrait
FGameplayTag ExpressionTag
USoundBase* VoiceAudio
FText LineText

Bind using the component or camera component instance that owns this dispatcher, not an unrelated Actor. The notification is not a guarantee that the associated gameplay consequence succeeded unless its contract says so.

  • Property: Source/AdvancedDialogue/Public/AdvancedDialogueComponent.h
  • Delegate signature: Source/AdvancedDialogue/Public/AdvancedDialogueComponent.h