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

Why can't i put my sprite into the animation window

Discussion in 'Animation' started by MosquitoByte, Mar 6, 2020.

  1. MosquitoByte

    MosquitoByte

    Joined:
    Sep 17, 2018
    Posts:
    213
    this is REALLY making me angry by how stupid this is. Every time i want to create a new animation i have to drag all the frames into my scene to get unity to create the animation for me, because when i try to create a new animation, and put all the sprites into it, it completely ignores me. Every time. absolutely livid about this. Am i doing something wrong?
     
    radiantboy likes this.
  2. MosquitoByte

    MosquitoByte

    Joined:
    Sep 17, 2018
    Posts:
    213
  3. MosquitoByte

    MosquitoByte

    Joined:
    Sep 17, 2018
    Posts:
    213
  4. MosquitoByte

    MosquitoByte

    Joined:
    Sep 17, 2018
    Posts:
    213
    MIASPMAN and kenfried7 like this.
  5. MosquitoByte

    MosquitoByte

    Joined:
    Sep 17, 2018
    Posts:
    213
  6. MosquitoByte

    MosquitoByte

    Joined:
    Sep 17, 2018
    Posts:
    213
  7. debatablejam

    debatablejam

    Joined:
    Mar 26, 2020
    Posts:
    1
    Make sure that the Game Object that you're animating is selected in the hierarchy.
     
  8. MrCheeX0R

    MrCheeX0R

    Joined:
    Dec 27, 2013
    Posts:
    3
  9. launzone

    launzone

    Joined:
    Dec 2, 2015
    Posts:
    56
    I have never tried animating sprites by dragging them onto the animation timeline, i don't even think it is intended to work that way or did you try this before and it worked?

    Anyway! I am assuming you want to create frame by frame animations and want to flip through different sprites. An easy way to switch out sprites is to just drag the sprites from your project window into the "Sprite" field on the sprite renderer component on a game-object that you are animating. If you hit the Record button in the Animation window before switching out the sprite you can even record it (this creates a keyframe for changing the sprite). There is other ways of animating frame by frame in unity. You can also have multiple game-objects with sprite-renderers in your animated game-object and then turn them on/ off in your animation accordingly or only turn the sprite-renderer on/off.
    Hope this helps!
     
  10. Captaingerbear

    Captaingerbear

    Joined:
    Mar 6, 2013
    Posts:
    57
    Not only does your object you want to animate have to be selected, but your animation clip has to already be included in the attached animation controller. You can create it in the asset list, then drop it into the controller, or if you have an empty controller, you can use the interface in the animator panel, as shown here. upload_2021-8-26_10-22-41.png
    This option does not show if there are already ANY animation clips in the animation controller, so create a fresh, empty controller, and create your first clip for it this way.

    Once you've done this you can drag sprites directly into the animation timeline from the assets list.
    upload_2021-8-26_10-24-51.png

    Then, when you're ready to add another clip to your animation controller, you can go through the same process of adding an empty clip to the controller before adding sprites in, or I've found it's much easier to do it through the interface provided on the animation timeline, shown here :
    upload_2021-8-26_10-26-43.png

    If you do all this through the specified interfaces, you should have no trouble dragging your sprites directly into the timeline onto the frames you want them.



    This was a frustratingly opaque process, and took me a while to figure out exactly how to get it to work. I hope that this answers your question.

    [Edit : Experimented a bit more and updated the instructions for clarity. Please feel free to correct me if I've got anything wrong]
     
    Last edited: Aug 26, 2021
    CodeRonnie and XRYZX like this.
  11. kenfried7

    kenfried7

    Joined:
    Dec 3, 2022
    Posts:
    1
  12. baycovskiyclub

    baycovskiyclub

    Joined:
    Jan 5, 2023
    Posts:
    1
    how can i choose multiple sprites ?
     
  13. JPerezL

    JPerezL

    Joined:
    Jul 18, 2019
    Posts:
    1
    Also make sure you are in the Dopesheet view in the animation window, not in the curves editor.
     
  14. Sh4n3-VN

    Sh4n3-VN

    Joined:
    Aug 11, 2023
    Posts:
    1
    simply, first click on the gameobject you would like to use animation. Then in Animation Window, there's small drop down list lets you choose Animation .anim file to edit, choose one. Then Animation window inspector highlights "Add Property" now you can drag frame to frame timeline. Hope it help!
     
  15. gfraz

    gfraz

    Joined:
    Feb 27, 2021
    Posts:
    3
    Welp, I had a similar problem. I was unable to do anything with sprites (already separated from sprite sheets) I purchased from the Unity store, until I changed their Sprites Modes from "Multiple" to "Single."