Search Unity

Apply same graph to multiple animators

Discussion in 'Animation' started by Krajca, Apr 22, 2021.

  1. Krajca

    Krajca

    Joined:
    May 6, 2014
    Posts:
    347
    Hello. How to apply the same graph to multiple animators?

    I want to use them just like the old Animator Controller. Can I apply somehow one graph to all objects or should I copy it for every animator output?

    My question comes from AnimationJobs as I would like to process all objects with the same animation graph in one job. Is it possible at all? Maybe my approach is wrong?
     
  2. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    I think the solution to your problem is this.

    Using an Animator Override Controller to override animations in the graph main Graph. So all you need to do is assign that to the animation controller instead of the main graph. The override Controller will then have fields for you to add in the animations it will be replacing after you assign the main controller to it.

    upload_2021-4-22_16-38-21.png
     
  3. Krajca

    Krajca

    Joined:
    May 6, 2014
    Posts:
    347
    Oh, I didn't specify. My bad!

    I'm using a playable graph not an Animator Controller.