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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lizukadaky101
Posts: 13
Joined: Fri Jan 13, 2023 6:25 pm

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

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

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

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