How to play Dialogue Menus hide/show animation after each node
-
- Posts: 13
- Joined: Fri Jan 13, 2023 6:25 pm
How to play Dialogue Menus hide/show animation after each node
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
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
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