Announcements, support questions, and discussion for the Dialogue System.
Strook
Posts: 74 Joined: Fri Nov 08, 2019 10:51 am
Post
by Strook » Fri Nov 05, 2021 7:39 pm
Hello,
I'm writing a custom sequence to shake the position of the current Subtitle panel (using DoTween)
How can I get a reference to transform of the currently open subtitle panel? I tried a bunch of thing but I can't wrap my head around how to do it
Thanks!
Tony Li
Posts: 23376 Joined: Thu Jul 18, 2013 1:27 pm
Post
by Tony Li » Fri Nov 05, 2021 9:34 pm
Hi,
Try this:
Code: Select all
DialogueActor dialogueActor;
var panel = DialogueManager.standardDialogueUI.conversationUIElements.standardSubtitleControls.GetPanel(
DialogueManager.currentConversationState.subtitle, out dialogueActor);
Strook
Posts: 74 Joined: Fri Nov 08, 2019 10:51 am
Post
by Strook » Sat Nov 06, 2021 7:54 pm
works like a charm, thanks!