15-01-2013, 07:52 PM
salve, sto seguendo un tutorial su internet su come fare il menu sul tutorial dopo aver fatto questo script:
[spoiler]
using UnityEngine;
using System.Collections;
public class mainmenu : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUILayout.BeginArea(new Rect(Screen.width/2, Screen.height/2, 500, 500));
GUILayout.Label("ciao mondo!");
GUILayout.EndArea();
}
}
[/spoiler]
dopo averlo fatto dice di inseririlo in main camera pero a me dice can't add script che devo fare? Lo script l' ho fatto passo passo
[spoiler]
using UnityEngine;
using System.Collections;
public class mainmenu : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUILayout.BeginArea(new Rect(Screen.width/2, Screen.height/2, 500, 500));
GUILayout.Label("ciao mondo!");
GUILayout.EndArea();
}
}
[/spoiler]
dopo averlo fatto dice di inseririlo in main camera pero a me dice can't add script che devo fare? Lo script l' ho fatto passo passo