- Home /
Factor of scale after importing a picture
Hi all, After I imported a picture ( PNG, PSD...) to get it like one of my game's assets. It is resized by Unity for optimal options. it's OK.
But I need an absolute factor of the scale for my logic calculator after that.
Please give me a number
Thank you.
Answer by rutter · Aug 13, 2014 at 03:30 AM
By default, Unity scales textures to the nearest power of 2 on each axis: 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192 and so on.
For example, an image that starts at 31x4000 pixels might be imported at 32x4096. That's a weird size, but it gets the point across.
You can change this by editing your import settings for each image. Unity tries to pick default settings that are generally good for many different games, but it's impossible for them to cover every use case. Sometimes it's necessary to tweak the settings.
Thank you so much mr Rutter,
I will try it...
But I really want to keep the recommend setting of Unity when I import a picture, and I also want to keep my logic based on size of picture imported, do they conflick and what is the best way?
Is there any way to know exactly my picture's size after imported into Unity
Your answer
Follow this Question
Related Questions
Resize Array based on distance. 2 Answers
resize particle emitter 1 Answer
How to resize preference window to fit gui contents. 1 Answer