Page 1 of 1

CallBack for end of subtittle or bark

Posted: Thu Apr 10, 2025 3:42 am
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!

Re: CallBack for end of subtittle or bark

Posted: Thu Apr 10, 2025 4:22 pm
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.