maybe it is an odd question but what i try to accomplish here is…
i create a GUI.DrawTexture showing a whiteboard, and here’s the code
public var background1 : Texture;
var btn_next : Texture;
function OnGUI(){
GUI.DrawTexture(Rect((Screen.width-(Screen.width/4*3))/2,
(Screen.height-(Screen.height/4*3))/2, //this is to center the Rect
Screen.width/4*3, Screen.height/4*3),background1);
GUI.DrawTexture(Rect(200,100,40,20),btn_next);
//btn_next must be at right-lower corner of whiteboard.
}
and then i want to Draw again a texture of Next Button, but i want to Draw it Inside the background 1… so i will not put it bluntly on the screen… because it will cause the button takes different place on different mobile resolution…