Page 1 of 1

Pop in animation for dialogue

Posted: Thu Feb 29, 2024 10:25 am
by nuttaphoom
Hi I'm trying to create animation on Standart UI Subtitle Panel when the game object is active
What I have done is creating the animator and attach it to the Standard UI Subtitle Panel
Screenshot 2024-02-29 221822.png
Screenshot 2024-02-29 221822.png (470.76 KiB) Viewed 109 times
the problem is now my subittle panel won't be closed when I call StandardUISubtitlePanel.Close() from the
CloseSubtitleButton (using for Timeline)

The system used to work fine before I add the animator to the Standard UI Subtitle Panel, if I remove the animator component it works again.

Noted that I also attached animator to portrait image as well but remove it from the portrait image doesn't fix the issue

Thanks !

Re: Pop in animation for dialogue

Posted: Thu Feb 29, 2024 4:00 pm
by Tony Li
Hi,

Does your animator have Show and Hide trigger parameters? Did you set the Standard UI Subtitle Panel's Show Animation Trigger and Hide Animation Trigger fields to the names of those trigger parameters?

hideAnimation.png
hideAnimation.png (156.55 KiB) Viewed 94 times

If the Standard UI Subtitle Panel has an Animator, then when you call Close() it will set the Hide Animation Trigger and wait until the hide animation is done. If this is not configured correctly, the panel will time out after 10 seconds and immediately deactivate itself.