Each button in response menu having separate animation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
TIM
Posts: 4
Joined: Thu Dec 19, 2024 9:04 pm

Each button in response menu having separate animation

Post by TIM »

Hi, I've been adding animations through the "show hide" under the Response Menu Panel. As attached in the gif below.

I have been able to set it up so that the whole panel of response buttons animates up together but what I would really like to be able to do is have them animated separately so I can offset their timing.

When I move the animator component to be on each response button it seems to animate only one button rather than all.

Is there a solution to this so each button can have its own separate animation?

And, is it possible to add animation to the selected button?

thanks
Attachments
menu.gif
menu.gif (940.16 KiB) Viewed 569 times
User avatar
Tony Li
Posts: 22904
Joined: Thu Jul 18, 2013 1:27 pm

Re: Each button in response menu having separate animation

Post by Tony Li »

Hi,

If you want to do it without any scripting, you can configure the response menu panel animator's Show animation to animate all of the buttons individually:
buttonAnimation.png
buttonAnimation.png (45.62 KiB) Viewed 526 times

If a response button isn't needed for a particular menu, it will still be animated, but it will be inactive so the player won't see it.

To animate a response button when the player selects it (e.g., hovers with mouse or navigates to it with joystick), change the Button's Transition type to Animation. Then click Auto Generate Animation. This will create and assign an animator controller asset with all of the necessary states. You can assign this animator controller to all of your response buttons. Then create and assign animations to them.
TIM
Posts: 4
Joined: Thu Dec 19, 2024 9:04 pm

Re: Each button in response menu having separate animation

Post by TIM »

Thankyou! wasn't aware you could animate child objects from an animator. Worked a treat, thanks!
User avatar
Tony Li
Posts: 22904
Joined: Thu Jul 18, 2013 1:27 pm

Re: Each button in response menu having separate animation

Post by Tony Li »

Glad to help!
Post Reply