Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity 4.0 Mecanim Tutorial Issue

Discussion in 'Animation' started by xtgscott, Nov 9, 2013.

  1. xtgscott


    Nov 8, 2013
    Hi all, i'm new to Unity the forums. I'm stuck on a small issue that I can't figure out. I followed this tutorial

    No issues easy to follow along, but for some odd thereason, when I press play after I've set up my animator controller and the walk run animations along with assigning the transitions, Unity spits out a null reference error. The default idle animation works just fine. I'm not at my pc currently so sorry I don't have pics.

    What I've done:
    - Created an Animator controller
    - assigned controller to the Animation component of my player
    - setup default idle animation
    - setup Locomotion branch tree with a transition coming from idle to locomotion one transition from locomotion to idle.
    - set up the two float variables, direction speed. The ranges for walk run are -1 to 1.

    If I can be of any other help, please don't hesitate to ask. I'd like to get my issue resolved.