Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity Canvas Buttons gets tiny when Build

I am working with Unity 5, and when I add Canvas Button the button get smaller this is how it looks like before build Before Build to an Apk Before

and after build on my Lg g3: After

like image 440
UnityNewb Avatar asked Dec 05 '25 11:12

UnityNewb


1 Answers

As seen on your screenshots, the button has a fixed size in pixels. and your mobile screen probably has a higher screen resolution.

Set the Canvas Scaler to something other than Constant Pixel Size as this Makes UI elements retain the same size in pixels regardless of screen size.

scale with screensize would in this case be more fitting. As it Makes UI elements bigger the bigger the screen is.

as per Unity Documentation

like image 121
MX D Avatar answered Dec 07 '25 15:12

MX D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!