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. Dismiss Notice

Can't drag multiple sprites into Scene View

Discussion in '2D' started by jellybunnybean05, Aug 12, 2022.

  1. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    Hi, everyone! Just had a quick question about my sprites:

    I'm following a Unity tutorial about sprite animations (
    Introduction to Sprite Animations - Unity Learn), and I've done everything up to Step 5. I have some sliced sprites, and I want to drag a few of them into the Scene view, which is what Step 6 says to do: "Multiple Sprites can also be selected from the Project window and then dropped into the Scene at the same time." But I can only drag one Sprite at a time. I just want to drag 4 Sprites to learn how to make a blinking animation. Is there something I'm doing wrong?

    BTW, I'm not sure if this has anything to do with my problem, but Step 5 said for me to select "Grid by Cell Count" in the Sprite Editor, but I don't have the female Sprite they're using, and my sprites are grouped 420px W by 270px H. So I used "Grid by Cell Size" to slice instead. Also, when my sliced sprites show up, they don't show a preview of the slice, just boxy-looking things. I don't understand why, so I've attached a screenshot for you guys to see. Thanks for your help in advance!

    P.S. @Cornysam, do you have any suggestions?
     

    Attached Files:

  2. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    Never mind, I dragged the whole sprite sheet into Unity, and that prompted Unity to make a new Animation. Now I'll just need to figure out how to make specific animations, so I'm hoping the tutorial will help me with that :).
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,713
    Now that you've made an animation out of sprites, go edit the animation (Window -> Animation... and of course Window -> Animator).

    Go nuts, rip tear shred, replace frames, reorder them, delete frames, etc. Get familiar with it... it's super-easy to use.

    When you're done and you think you understand it all, delete the animation and drag the sprites in again.

    Lather rinse repeat. Learn by doing.
     
  4. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    Thank you, @Kurt-Dekker! Learning by doing is best for me (which, not all the Unity tutorials help me with, as they're sometimes confusing), so I'm going to look at the Animator and try to find some other tutorials. I'll let you know when I can get my character to blink.:)
     
  5. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,511
    Just so you know, the colouring you're doing on the text makes your posts REALLY hard to read. At least for me.
     
  6. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    OK. Sorry, MelvMay, purple's my favorite color, so I generally don't like plain text. But should I stick to black or is this purple better for you? Also, does anyone else think my text is hard to read?
     
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,511
    It's up to you what you want to use really; I was only mentioning it. I don't see a problem with black, it's not a pretty blog post or anything so in my opinion, just stick with black text as it's all about readability and getting info across. Colours are best used to highlight things in my opinion but in the end, it is just my opinion. You are free to do what you wish! :)
     
  8. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    OK, @MelvMay! I'll stick to black for now. Perhaps I'll go back to the darker purple sometime. BTW @Kurt-Dekker, I've made my character blink! I just wish I could make a GIF to show you. But my character won't be still: when she blinks, she moves back and forth a little (like this --> --> -->), instead of staying in one place (even though I told each of the frames to be at X: -7). How do I fix this?
     
  9. Cornysam

    Cornysam

    Joined:
    Feb 8, 2018
    Posts:
    1,343
    It is probably a pivot point issue. You can go into the sprite editor and move that little blue circle (the pivot point) and make sure they are all in the center of their respective sprite.

    One way to alleviate this from the get go is when you are making your own sprites, make sure they are perfectly center. I.E, if you are using pixel art and it is 64x64, you want to make sure the head is in the same place for every sprite/frame. Unless you are trying to move the head of course. This is the more cumbersome way to do it, but if you are going to make all of your own sprites, learn how to set them up properly so you don't have to deal with pivot point issues in the Unity editor.
     
  10. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    OK, @Cornysam! I tried to make sure my sprites were evenly spaced out when I made my sprite sheet, so I wouldn't have to worry about this. But I'll try to see about the pivot, and see if I can space my sprites even better.
     
  11. jellybunnybean05

    jellybunnybean05

    Joined:
    Jan 27, 2022
    Posts:
    22
    All of my Sprites seem to have center pivots, so I guess I'll try to space out my Sprites more.

    EDIT: After spacing out my sprites 442px W by 292px H, and after slicing my Sprite sheet, my character still won't be still when she blinks. But I'll try to slightly move my character as I'm recording my animation, and see if that helps.
     
    Last edited: Aug 13, 2022