http://forum.unity3d.com/threads/screen-resolutions-first-iphone-question.108539/
var originalWidth = 480.0; // define here the original resolution
var originalHeight = 320.0; // you used to create the GUI contents
{
//scale buttons to the correct position depending on screen resolution
scale.z = 1;
// substitute matrix - only scale is altered from standard
///////////////////////Your Gui Code Here//////////////////////////////
//if(GUI.Button (Rect (225,325,120,40), "Try Again"))//web
{
}
// restore matrix before returning
}
No comments:
Post a Comment