Page 1 of 1

How to play Dialogue Menus hide/show animation after each node

Posted: Sun Jan 15, 2023 12:00 pm
by lizukadaky101
Hello, how can I play dialogue menus hide/show animation after each node? And can I set the timer on how long will the menu be hidden?

Re: How to play Dialogue Menus hide/show animation after each node

Posted: Sun Jan 15, 2023 2:45 pm
by Tony Li
Hi,

Yes, you can do that. The starter prefabs that ship with the Dialogue System use show/hide animations. Examine Basic Standard Dialogue UI for an example. The Response Menu Panel has an Animator component and a StandardUIMenuPanel component. The StandardUIMenuPanel has Show Animation Trigger and Hide Animation Trigger values. When showing the response menu (i.e., when the conversation has responses to offer the player), it sets the Show Animation Trigger. When the player clicks a response, it sets the Hide Animation Trigger.
.
You can assign a different animator controller to your own response menu panel that plays different animations