- Home /
 
 
               Question by 
               ajohnson1910 · Apr 04, 2013 at 07:39 PM · 
                androidvuforiaapp  
              
 
              Resize GUI Button (linked to website) ??
I've tried other scripts found in other answers but I can't seem to get any results, I'm creating an Android AR app (Vuforia) and can't seem to use the following script to adapt the button to it's surroundings, because obviously by changing the orientation it's going to change the screen size;
 function OnGUI() {
 
 if (GUI.Button (new Rect(Screen.width/1.2f,Screen.height/2.4f,Screen.width/9.8f,Screen.height/7.6f),"Visit Our Website!")) { Application.OpenURL("https://www.buhlergroup.com/uk/customerservice") ;} 
 
 }
 
               I'd really appreciate some input, thanks!
               Comment
              
 
               
              Answer by Nachtmahr · Apr 04, 2013 at 07:54 PM
http://answers.unity3d.com/questions/161281/is-there-a-way-to-android-physical-screen-size.html
Looks Complicated =)
whoa, that really does look complicated, I'm far from competent with scripting, but does that resolve the issue of resizing a GUI button when changing from portrait to landscape?
Thanks!!
Your answer