Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Shaquita · Jun 22, 2015 at 09:06 PM · unity 5unity 2dspritesplatformerimport settings

What are the best practices when importing 2D pixel sprites

(Using Unity 5.1.1)

I am developing a game (Name is 'Emortuus') its a 2D platformer and i have the core of the game actually complete and written down now i just need to construct it in a software and instead of using what i usually use I wanted to try Unity and see if i can take advantage of its awesome easy to use features but i want to know more about the importing settings before i start bringing in levels.

heres a pic of the character models (defined pixel art) for you to get what im working with: alt text

-So when making sprites whether it be a sprite sheet for a characters run/idle/jump anim, a single item (maybe like a trash can that will sit on the side of the road) or a big BG for my game scene what dimensions should i make it in that is easy for unity to translate/compress, eg: 256x256, 512x512. does this matter?

-My next concern was with the Pixel to Units. I know the obvious, it changes the size. Unity reads a 256X256 pixels by its unit measurement so it would be 2.56x2.56 in unity. if you change the pixel to units for most of your sprites just so you can make sure it fits well with everything in the scene will it disrupt how the game flows? For example if i import something and it doesnt match how big i wanted it to actually be in the scene can i simply just chnage the pixel to units to match it or will it screw things up?

-The max size (also under import setting) also concerns me. This is where i thought i'd worry about the dimensions of my sprites should be when importing them into Unity. Should i have all my sprites being able to be on 1024 or 2048 or does it really matter. Say if i had just an oddball dimension like 270x270 what would I do in this situation dealing with the 'max size' option. This also leads onto should i practice a more practical approach and just stick to a couple different dimensions that are already listed in Unity like 256x256, 512x512, ect...

I know this will make some of you shake your heads at my questions and sorry for that, i just dont want my brain to hurt later down the road if simple stuff like that can change how i would like it to act.

Summary: Basically need to know a good practice on importing 2d pixel sprites into Unity. -What dimensions are best when making them in Photoshop then importing them into unity so it can compress it better. -Pixels to units : how should i go about with this tool when importing. -Max size: This also goes with what dimensions i should use with my sprites.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Gauthama · Apr 07, 2017 at 09:52 AM

Here is a FAQ :

"should i make it in that is easy for unity to translate/compress, eg: 256x256, 512x512. does this matter?"

No it doesn't matter chose a size you comfortable with.

" For example if i import something and it doesn't match how big i wanted it to actually be in the scene can i simply just change the pixel to units to match it or will it screw things up?"

No this will not cause any problems.

" Say if i had just an oddball dimension like 270x270 what would I do in this situation dealing with the 'max size' option. This also leads onto should i practice a more practical approach and just stick to a couple different dimensions that are already listed in Unity like 256x256, 512x512, ect..."

Some devices won't load a sprite that's larger than 2048 x 2048.And it is recommended to stick to around 2-4(at max) different resolutions.You should also make sure that the resolution of the sprites are a power of 2 for compatibility reasons.

eg. If we take a 32x32 px sprite then the square root of 32 x 32 must be a whole number.

"Basically need to know a good practice on importing 2d pixel sprites into Unity. -What dimensions are best when making them in Photoshop then importing them into unity so it can compress it better. -Pixels to units : how should i go about with this tool when importing. -Max size: This also goes with what dimensions i should use with my sprites."

Here is a article covering the Unity and Photoshop workflow - http://www.swingswingsubmarine.com/2014/01/23/from-photoshop-to-unity/

And regarding the "Pixels to Unit" just use a size that fits with the rest of the sprites in the scene.

Max Size is really not a big deal leave it as it is.It mainly matters when using textures for 3D objects.

And concerning the sprite size 16 x 16, 32 x 32 and 64 x 64 px(if your really good) are the most common and the best sizes for pixel art.

There is a lot you can do with a few pixels!.About improving in your pixel art skills I recommend you check out PXLFLX and MortMort.

PXLFLX : https://www.youtube.com/user/PXLFLX

MortMort: https://www.youtube.com/user/atMNRArt

And I can wait to play your game my friend.As a matter of fact I am working on a 2D platformer shooter.I think we should keep in touch.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

When I build my 2D game and set it to fullscreen, the resolution looks off 0 Answers

Can't Get .enabled to Work for Children Sprites 2 Answers

What size should i have my atlas if im trying to do a game for pc xbox and ps? 1 Answer

How to add score after destroying object in unity 2D? 1 Answer

how to instantiate images ui in different position randomly 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges