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

Forcing the Animator to play a clip

Discussion in 'Animation' started by richard-kopelow, Dec 12, 2018.

  1. richard-kopelow

    richard-kopelow

    Joined:
    Oct 21, 2015
    Posts:
    10
    Is it possible to force the Animator to play an animation in a similar way to the legacy system? Timeline seems to be able to force arbitrary animation clips on an Animator component but I see no exposed way to do this from a script. The closes thing I found was to make a controller with a state for every clip you want to force and force the state to play.

    I know the point of Mecanim is to build a robust FSM, pipe it a few parameters, and forget about it but sometimes you want full control.
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,555
    I think my Animancer plugin is exactly what you're looking for.