Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Switching Animation at runtime

Discussion in '2D' started by BrienKing, Sep 24, 2018.

  1. BrienKing

    BrienKing

    Joined:
    Oct 11, 2015
    Posts:
    35
    I have several characters that use the same prefab game object.

    I create them dynamically as needed and I want to switch out the Animation on the Animator when I create it so that I don't have to have 8 different prefabs (one for each character).

    I haven't found any information currently that would tell me how to do that...