Search Unity

Mecanim and OnAnimationIK not working anymore?

Discussion in 'Animation' started by Seith, Nov 23, 2013.

  1. Seith

    Seith

    Joined:
    Nov 3, 2012
    Posts:
    755
    Hi guys. Is OnAnimationIK officially broken in 4.3?

    I mean this function is supposed to get called after each Update function as long as you have "IK Pass" checked in you Animator's base layer. It's supposed to allow you to use SetIKPosition and SetIKPositionWeight to enforce arbitrary IK goals on your character. But the following function is actually not executed at all by Unity (no output in the console):

    Code (csharp):
    1.     void OnAnimatorIK(int layerIndex)
    2.         {
    3.         Debug.Log("Check!");
    4.         }
    Can anyone please either confirm this is broken or that I'm doing something wrong? Thanks...