- Home /
3 general questions about sprite/texture
Q1: can i shrink ALL of the images instead of one by one?
Q2: Should i always before making a game, i make my images for the largest resolution and then shrink them ?
Q3: the code in this page link text can i use it for sprite or for example my background which doesnt have OnGUI function?
i am using C#
Thank you very much
Answer by TheAlmightyPixel · Sep 11, 2014 at 05:21 PM
Hi there, 1) In your sprite's import settings, you should see a value 'Pixels To Units'. If you increase the value and apply the changes, the sprite and all copies of that sprite imported to the scene will be smaller when put into the scene. This also works if you have your sprites in the scene already.
2) I usually make my sprites quite high quality to allow scaling, of course the resolution depends on what platform you're making the game for. If you're making the game for a mobile device, the resolution might not have to be that high. (I used a 1920 x 1080 res for a backround sprite, and 512 x 512 for sprites representing objects, then scaled those down a bit.) You can scale the sprites quite a bit without losing too much of the quality, at least from what I've seen.
3) I believe the code on the post works, you'll have to try it out by yourself to see if it does.
Your answer
![](https://koobas.hobune.stream/wayback/20220613162817im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to break a sprite into shapes with script 1 Answer
Multiple Cars not working 1 Answer
Texture input: changing format 1 Answer
Distribute terrain in zones 3 Answers
Drawing a button below a GameObject 2 Answers