Search Unity

Question Can you force the execution order of two Animation Controllers ?

Discussion in 'Animation' started by unisip, Mar 24, 2023.

  1. unisip

    unisip

    Joined:
    Sep 15, 2010
    Posts:
    340
    I have a use case where I animate a character in one Animation Controller and animate his weapon in another one. However I need to control the processing order because I'm doing IK on the character hands based on locators that are on the weapon rig.

    Is there a way to force one Animation Controller to execute before the other ?
     
  2. ShinAli

    ShinAli

    Joined:
    Sep 24, 2011
    Posts:
    36
    Surest way to guarantee a call order is to disable both animators and call the Update functions in some script yourself.
     
  3. unisip

    unisip

    Joined:
    Sep 15, 2010
    Posts:
    340
    Thanks for the tip. I didn’t know that animation processing was actually done in the update call.