Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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...