Pop in animation for dialogue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nuttaphoom
Posts: 10
Joined: Wed Jan 10, 2024 3:24 am

Pop in animation for dialogue

Post 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 108 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 !
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Pop in animation for dialogue

Post 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 93 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.
Post Reply