I just did a Main menu with an Emty GameObject (MainMenu) contains a GUI Texture (GameObject) so I want to scale it because if you change the screen resolution the buttons can’t be visible.
Here an example of my code
var MainMenu : GameObject;
var OptionsMenu : GameObject;
var Options : GameObject;
function OnMouseDown()
{
if(this.name == "Button_Options")
{
MainMenu.SetActive(false);
OptionsMenu.SetActive(true);
Debug.Log("Loading Options Menu");
}
}
If you can help me I’ll love you for ever :3