Custom sequence: How get current Subtitle Panel transform?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Custom sequence: How get current Subtitle Panel transform?

Post by Strook »

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 :shock:

Thanks!
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom sequence: How get current Subtitle Panel transform?

Post by Tony Li »

Hi,

Try this:

Code: Select all

DialogueActor dialogueActor;
var panel = DialogueManager.standardDialogueUI.conversationUIElements.standardSubtitleControls.GetPanel(
    DialogueManager.currentConversationState.subtitle, out dialogueActor);
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Re: Custom sequence: How get current Subtitle Panel transform?

Post by Strook »

works like a charm, thanks!
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom sequence: How get current Subtitle Panel transform?

Post by Tony Li »

Happy to help!
Post Reply