Search Unity

Question What's the easiest way to fix animator paths after changing gameobject hierarchy/names?

Discussion in 'Animation' started by ShrikeDev, Nov 24, 2022.

  1. ShrikeDev

    ShrikeDev

    Joined:
    May 31, 2018
    Posts:
    31
    Currently I have to press F2 on every property in the animator and manually copy/paste the new path on each property, this is a bit of a PITA if a lot of paths changed (would be nice if it just handled it automatically). Is there not a faster way than this? Only way I can think of is doing it with an AHK script. If there was a way to just bulk replace the changed part of the path it would be a lot easier.
     
    Last edited: Nov 24, 2022
    DragonCoder likes this.
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    I'm pretty sure there is no inbuilt way to handle it.

    I made an editor window to let you Remap Animation Bindings which I can't really tell you about because advertising isn't allowed here (except in signatures).

    If you try to implement something like that yourself, the functions you need to get and set bindings are located in the AnimationUtility class.