Forum rules - please read before posting.

Animating Unity prefab UI Inventory Bar

Hi,

So I have a image on my Panel of a scroll which the grid slots sit under, and I want to animate this scroll opening and closing on Inventory menu on and off. I read that I need to have the animations On, OnInstant, Off, Offinstant as my animations. However, how do I animate a spritesheet from the main canvas when the images are on the panel? Plus, is On always on, and OnInstant the opening animation? Thanks! See screenshots:

https://www.dropbox.com/sh/1mrl0ncwb6baxnp/AAB-i7B8x5T-26s3n0_uLZvGa?dl=0

Comments

  • For automated animations when the UI is turned on and off, the Animator must be on the root Canvas object. An Animator on the root can control its child objects.

    You can have an Animator on a child object (either as well as, or instead of, the root Animator), but this will not be called automatically - you'll have to use e.g. the Object: Animate Action to call your animations separately.

    is On always on, and OnInstant the opening animation?

    When the Menu is turned on, it'll trigger either On if a transition is used, or OnInstant if not. Neither are called continuously.

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.