Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

unity 5 State Machine Behaviour OnStateIK

Discussion in 'Animation' started by ASAGAMING, Mar 21, 2015.

  1. ASAGAMING

    ASAGAMING

    Joined:
    Apr 8, 2014
    Posts:
    2
    since State Machine Behaviour can only access assets , how can i set potion & rotation to the transform in the scene , i understand i could call GameObject.Find inside OnStateEnter, but that is bad for performance since it will be called every time i use the animation, should i still use OnAnimatorIK for actual positioning, and what is the use of OnStateIK if i can't use it without the performance cost?
     
  2. ASAGAMING

    ASAGAMING

    Joined:
    Apr 8, 2014
    Posts:
    2
    anyone?