Search Unity

upgrade from 5.1 to 5.2 stops sprite animations?

Discussion in '2D' started by San_Holo, Nov 18, 2015.

  1. San_Holo

    San_Holo

    Joined:
    Sep 26, 2014
    Posts:
    152
    I had to upgrade my PC system and I installed a new Unity, 5.2.2f1 and this was going from 5.1-something... and I've just noticed my sprite animations are not firing... and wondered why, very odd, one of those upgrade bugs which I hope someone else has found before me... all I'm doing is enabling an 'animator' component via script and the controller is there and well as I say it all worked wonderfully before the upgrade now I just don't get it... if you happen to know please let me in on the secret, cheers
     
  2. San_Holo

    San_Holo

    Joined:
    Sep 26, 2014
    Posts:
    152
    Code (csharp):
    1.  
    2. else if (gameObject.tag == "QuestionMark") {
    3.                     tileAnimation.enabled = true;
    4.                     tileAnimation.Play("Starforce_face", 0, 0); // needed to be specific here and ask it to play something
    5.                     spriteCollider.enabled = false;
    just enabling the animator component isn't enough any more (controller was attached of course) I needed to ask it to do something