Page 2 of 2

Re: How do I stop the animation portraid

Posted: Thu Aug 25, 2022 8:36 am
by Tony Li
Hi,

The checkboxes are on the StandardDialogueUI and StandardUISubtitlePanel components:

standardDialogueUIWaitForClose.png
standardDialogueUIWaitForClose.png (37.42 KiB) Viewed 177 times
subtitlePanelWaitForClose.png
subtitlePanelWaitForClose.png (25.18 KiB) Viewed 177 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.

Re: How do I stop the animation portraid

Posted: Thu Aug 25, 2022 10:09 am
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

Re: How do I stop the animation portraid

Posted: Thu Aug 25, 2022 10:48 am
by Tony Li
Hi,

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