CallBack for end of subtittle or bark

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SindriaGames
Posts: 10
Joined: Sun Apr 06, 2025 1:17 pm

CallBack for end of subtittle or bark

Post by SindriaGames »

Im implementing the dialogue system into my NPCS using a behaviour tree. I want to pause the behaviour tree until the dialogue (or subtitle or bark) is finished then resume the Behaviour Tree.

Im using audio voice acting and in the sequence i have "AudioWait" for the bark or subtitle be on screen until the audio finisehs.

Is there a callback where i can subscribe to get a event when the bark or subtitle is finished?

thanks!
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: CallBack for end of subtittle or bark

Post by Tony Li »

Hi,

To be notified when a subtitle has ended, add a script with an OnConversationLineEnd(Subtitle) method to your Dialogue Manager, or add a Dialogue System Events component and use the OnConversationEnd() UnityEvent.

For barks, add an OnBarkEnd(Transform) method.
Post Reply