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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Animation doesn't play after loading the scene!

Discussion in '2D' started by Maksym_Pop, Nov 5, 2020.

Thread Status:
Not open for further replies.
  1. Maksym_Pop

    Maksym_Pop

    Joined:
    Jun 4, 2020
    Posts:
    6
    Hi.
    I have a problem! When I load the "Start" scene, I have an animation of the buttons appearing. But after I clicked on the button and went to the "Gameplay" scene, then clicked on the button to load the "Start" scene, the animation doesn't play!

    I do not know what this is related to. After all, no errors are received in the console.
    Sorry if there are mistakes, I'm from Ukraine.

    Here's a video to make it clearer.
     
  2. Cornysam

    Cornysam

    Joined:
    Feb 8, 2018
    Posts:
    1,343
    Can you post your code for loading that Start Scene? And maybe the code where you handle the animator transitions. Please use code tags:
    upload_2020-11-5_8-23-5.png
     
  3. Maksym_Pop

    Maksym_Pop

    Joined:
    Jun 4, 2020
    Posts:
    6
    I load the scene using
    Code (CSharp):
    1. SceneManager.LoadScene("Start")
    My animation "Wszystkie_Butt_Start" is attached to "Entry". Doesn't that mean it should play the animation first?
     
  4. Maksym_Pop

    Maksym_Pop

    Joined:
    Jun 4, 2020
    Posts:
    6
    I finally found the answer to my question. Just when I enable pause I equate Time. timeScale = 0. But I don't equate it to 1 when I return to the scene "Start".
     
  5. spasarxos

    spasarxos

    Joined:
    May 6, 2013
    Posts:
    1
    Respect
     
  6. DX5536

    DX5536

    Joined:
    May 17, 2021
    Posts:
    1
    Can I send you hugs and kisses? I was ripping my hair out until your simple answer xD
     
    Last edited: Jan 12, 2022
    ExtinctVenom and FrittoMisto99 like this.
  7. unity_byK9PfQpdD204g

    unity_byK9PfQpdD204g

    Joined:
    Jan 31, 2021
    Posts:
    1
    Saved my sanity here!
     
    ExtinctVenom likes this.
  8. mjcvbuan

    mjcvbuan

    Joined:
    Mar 1, 2022
    Posts:
    5
    Bless you. I've been working on this problem for hours now
     
  9. Zvzixv

    Zvzixv

    Joined:
    May 15, 2022
    Posts:
    1
    guys you are amaizing, thanks
     
  10. lino02

    lino02

    Joined:
    Jan 22, 2022
    Posts:
    1
    Thank you so much
     
  11. SkHiTech

    SkHiTech

    Joined:
    Mar 16, 2015
    Posts:
    1
    Same here, thanks man you saved my day! :-D
     
Thread Status:
Not open for further replies.