Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My UI appears extremely small when i build and launch my game on my android device. Im working with unity 4.6. I've tried changing the UI scale mode of my canvas to all 3 types. Scale with screen size option and constant physical size option makes it too big. Constant pixel size makes it too small. With constant pixel size this is what it looks like on my mobile:

enter image description here

I could increase the scale factor but then it looks like this on PC. Also, I don't think it would look right on a tablet then.

enter image description here

share|improve this question
    
I'd say that you need to write some sort of script which takes the DPI of the current device into account. I think there is already a canvas scaler component for this built-in Untiy (however: for my needs it was always to inflexible). – M156 May 3 at 9:32

You are 2 steps away from solution.

1- Select Canvas and change UI Scale Mode in Canvas Scaler to Scale With Screen Size in inspector.

Canvas

2- Set screen size from Free Aspect to any other size in Game tab.

Size

Now adjust your UI, it will remain same as in Unity Editor.

share|improve this answer
    
Tried this it didn't work. – AeonSage Feb 7 at 15:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.