Skip to content

What exactly are sprites and how can I convert images I have into sprites?

So I thought that in 2d games I had to just drag and drop images from my internal storage but that wasn't the case. I should have images in a sprite.zip folder from where the game engine(using Unity) will recognize images and from there I will be able to drag and drop images in the game. Can anyone explain in detail and in simple language about what sprites are and how can I convert my own images I made into sprites? Thanks for the help in advance!

2 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
f6biim

Author

31
posts
123
comments
14
media
View profile

6 comments

"Images" in Unity come in a several flavors (I'll only list 2 here).

  • Sprites (images intended to be the entire visual representation for an object)
  • Textures (images intended to be mapped onto a surface via material)

You can import your image assets by either dragging them from your OS file explorer into the Unity Editor Project window, or by using the Asset > Import context menu. Your images will need to be unzipped before importing.

If you have an object that you wish to visually represent using a sprite, you should add a SpriteRenderer component to that game object and specify which sprite should be used in the inspector. Depending on how you've imported your assets, the image may have improper import settings applied. An image can be imported as a "Sprite (2D and UI)", "Texture", or a few others. You'll need to select whichever is most appropriate.

5 points

Wow that was really very informative! Thanks my dude.

1 points
2 points

Thanks dude

1 points

I just looked up "2d sprites unity" on youtube. Do your own searches before asking this forum. I taught myself how to build a custom engine in C without ever asking this community because I did my own work. Importing sprites (and the definition of a sprite) is like the n00biest question out there with 1,000s of google pages about it. Sorry to preach it just gets old answering low level questions.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.