Search Unity

Disable transitions through code?

Discussion in 'Animation' started by Jay-Pavlina, Mar 25, 2015.

  1. Jay-Pavlina

    Jay-Pavlina

    Joined:
    Feb 19, 2012
    Posts:
    195
    I need to be able to temporarily lock my animator in its current state on all layers through code and have it loop. Is there any way to accomplish this? If I could somehow mute all of the transitions and then turn them back on later it'd be great. I need to be able to do this without parameters because it needs to work on everything.