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. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Repeating 2D animation doesn't proceed to another animation

Discussion in '2D' started by jesseblakemccann, Oct 21, 2021.

  1. jesseblakemccann

    jesseblakemccann

    Joined:
    Jan 21, 2021
    Posts:
    4
    Hello! I feel this is just missing some key concept, but I have no idea why my 2D animation is not proceeding to the next animation; it just keeps repeating. Image:

    upload_2021-10-20_20-55-26.png
     

    Attached Files:

  2. thecloudkeeper

    thecloudkeeper

    Joined:
    Sep 21, 2021
    Posts:
    28
    One possible thing that could be causing this is that the Animation Clip is set to Loop. Select the Clip that won't stop playing in your Project window and make sure Loop Time is unchecked.
     

    Attached Files:

  3. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    876
    @jesseblakemccann how does the transition from SolarPanelToBackground -> SolarPanelBackground2 look like? Could you select it (the arrow going from one state to the next) and show it to us?
     
  4. jesseblakemccann

    jesseblakemccann

    Joined:
    Jan 21, 2021
    Posts:
    4
    Hey! Thank you for the reply. The animation is not on loop, which I probably should've mentioned. Which is why this is so puzzling to me.
     
  5. jesseblakemccann

    jesseblakemccann

    Joined:
    Jan 21, 2021
    Posts:
    4
    upload_2021-10-20_21-29-1.png
     
  6. thecloudkeeper

    thecloudkeeper

    Joined:
    Sep 21, 2021
    Posts:
    28
    Also, what are the transition settings from Any State -> SolarPanel2, then SolarPanel2 -> SolarPanelToBackground? This is probably a reach, but is it possible the logic that plays your looping clip is always true?
     
  7. jesseblakemccann

    jesseblakemccann

    Joined:
    Jan 21, 2021
    Posts:
    4