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!
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- f6biim
6 comments
"Images" in Unity come in a several flavors (I'll only list 2 here).
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.
Wow that was really very informative! Thanks my dude.
https://youtu.be/k0jIBbmwvGk
Thanks dude
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.