How do I stop the animation portraid

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I stop the animation portraid

Post by Tony Li »

Hi,

The checkboxes are on the StandardDialogueUI and StandardUISubtitlePanel components:

standardDialogueUIWaitForClose.png
standardDialogueUIWaitForClose.png (37.42 KiB) Viewed 168 times
subtitlePanelWaitForClose.png
subtitlePanelWaitForClose.png (25.18 KiB) Viewed 168 times

If your version doesn't have those checkboxes, try something like:

Code: Select all

AnimatorPlay(Angry, Portrait Image)@0.5;
required AnimatorPlay(Idle, Portrait Image)@{{end}};
The first line will play the Angry state on Portrait Image's Animator at the 0.5-second mark.

The second line will play the Idle state on Portrait Image's Animator after the duration specified by {{end}}, or sooner if the player clicks the continue button to skip ahead.
Dralks
Posts: 44
Joined: Mon May 24, 2021 6:19 pm

Re: How do I stop the animation portraid

Post by Dralks »

Thank you again Tony, I don't have those options but I saw that you have the variable 'crossfadeDuration' in 'HandleAnimatorPlayInternally' that controls the exact time of the swap, with updating that to 0.5f I could time it perfectly, thank you very much for taking so much time to help
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I stop the animation portraid

Post by Tony Li »

Hi,

Happy to help. I'm glad you were able to implement a solution!
Post Reply