Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Using one animator controller to animate multiple unrelated objects?

Discussion in 'Animation' started by Demarest, Sep 24, 2021.

  1. Demarest

    Demarest

    Joined:
    Aug 11, 2013
    Posts:
    3
    I have a scene with one animator controller and different cards, Each card has an animation to move "up" or "down" using OnMouseEnter and OnMouseExit, and the animation is specific to each card because they have different orientations. This means that while one card is moving down, another could move up at the same time.

    My problem is that I don't know how to move them at the same time using the same animator controller. I've tried layers and changing those to additive and having the same weight but the result is inconsistent. I don't know how to have multiple states running at the same time because most of the times the animation gets stuck, other times there's a random delay (with or without "has exit time"), or they wait for the other to end even if they don't share the same trigger..

    Any tips? What am I doing wrong? Should I use one animator controller for each object? Thanks.
     
    Last edited: Sep 24, 2021