Forum rules - please read before posting.

Animating a UI Menu

edited March 11 in Technical Q&A

Hi
I have a menu with the "Mouse Over" Appear type, and when the menu is activated, I want to play an animation that's part of the UI. So I created an Object: Animate action and assigned it to the ActionList when turn on field, but it doesn’t trigger. However, if I manually play the animation in the scene, it works.

Is there a proper way to trigger an animation that's part of a UI (Menu)?

Just for context, this animation isn’t meant to play every time—only occasionally, like when something is unlocked.

This is my UI structure:

Canvas
├── Panel
│ ├── Button (Assigned as the Button element in the Menu)
├── Parent GameObject (Contains Animator Component)
│ ├── Image 1
│ ├── Image 2

Thank you so much!

Comments

  • edited March 11

    Is the Animate Action properly recording the Constant ID of the Animator object? It may need a moment to initialise - try preceding it with an Engine: Wait Action of -1 seconds.

    If you want to animate a Menu when it turns on, you don't need to rely on Actions - instead, set the Menu's Transition type property to either Custom Animation States or Custom Animation Blend. This will affect an Animator attached to the root.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.