Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » scene issue

scene issue

View previous topic View next topic Go down  Message [Page 1 of 1]

1 scene issue on Wed Jun 17, 2015 1:12 am

suresh_b


Member [Lv. 1]
Member [Lv. 1]
Hi All,

I created empty scene, and created buttons through code by giving the coordinates. here when i running in unity buttons placing based on the coordinates. then i build  .apk file and run in mobile device, now buttons are not placing properly.

how can we scale the scene and fit to all mobile screens dynamically.

please help me...


thanks in advance...

View user profile

2 Re: scene issue on Wed Jul 22, 2015 4:05 pm

Outboundstream4


Member [Lv. 2]
Member [Lv. 2]
try replacing the cooordintes with screen.width and screen.height then use some division and other math to adjust it to fit how you want them for example

(GUI.Button (new Rect (screen.width / 2, screen.height / 2, 200, 30),

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum