Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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 ...