Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Anyone else crashing when using Animator.CrossFade?

Discussion in 'Unity 5 Pre-order Beta' started by Silly_Rollo, Oct 27, 2014.

  1. Silly_Rollo

    Silly_Rollo

    Joined:
    Dec 21, 2012
    Posts:
    501
    Crossposting from support:

    Every time I call Animator.CrossFade I get a non specific memory crash (access violation) and no other console errors. I've tried calling it both by string and by hash and either crashes. I've tried in several Animator Controllers to various states and it seems pretty consistent.

    Has functionality changed in Unity 5 in some fashion that we aren't supposed to do it this way? Hard to get much simpler than

    Code (csharp):
    1. _animator.CrossFade("Damaged", 0.5f);
    Still works fine in 4.5.

    Also works fine if I use _animator.Play("Damaged") but CrossFade crashes.
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Sounds like "file a bug report" to me.
     
  3. Silly_Rollo

    Silly_Rollo

    Joined:
    Dec 21, 2012
    Posts:
    501
    Just submitted with relevant files.
     
  4. Shbli

    Shbli

    Joined:
    Jan 28, 2014
    Posts:
    126
    The same happening to me, just I replaced it with play and it is working fine! waiting for the fix from unity to update it later, else many things seems to work great ...