x


How to do .9 scale for scaling screen?

In Eclipse we could use .9 scale for scalling screen for Android screens. Is there a way to do it in unity, especially for 2D?

more ▼

asked Apr 19 '12 at 03:00 PM

ShirleyXiao gravatar image

ShirleyXiao
24 2 3 5

Could you elaborate your question and goal with this a little more?

Apr 19 '12 at 03:58 PM Statement ♦♦

Well, I'm sorry if my question is not clear. I'm trying to make a simple shooting game with unity, and I make the 2D menu with NGUI. I want this game to work well in Android, whatever the phone is, but Android have many types of screen so I have to adjust the menu according to the screen. One of the ways to do it in Eclipse is with 0.9 scale. But I don't know how to do it in unity. I try to find the way through Google, but I can't find anything suitable, so I hope maybe there are someone who know about it?

Apr 19 '12 at 04:04 PM ShirleyXiao

I think he is asking about scaling the GUI components of GUI graphics in Unity. My own understanding is that the GUI components are based on pixel sizes and don't have automatic scaling capabilities. i.e. coordinates are from 0,0 - top left to Screen.width, Screen.height at the bottom right. Any scaling you want to do has to be done in your own code.

Apr 19 '12 at 08:18 PM kolban
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2448
x1032
x477
x386

asked: Apr 19 '12 at 03:00 PM

Seen: 583 times

Last Updated: Apr 19 '12 at 08:18 PM