First of all, sorry for my bad grammar. Could anyone tell me why my box is not showing up? I already put these Script at my main camera but it still doesn't work. Or is there any way to fix this? Thank you
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Login : MonoBehaviour {
public GUIText loginText;
public static string Email = "";
public static string Password = "";
public string CurrentMenu = "Login";
private string CreateAccountUrl = "";
private string LoginUrl = "";
public float X;
public float Y;
public float Width;
public float Height;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI(){
if(CurrentMenu == "Login"){
LoginGUI();
}
else if(CurrentMenu == "CreateAccount"){
CreateAccountGUI();
}
}
void LoginGUI(){
GUI.Box(new Rect(X, Y, Width, Height), loginText);
}
void CreateAccountGUI(){
}
}