In this tutorial we are learning the basics of GUI.
Unity 3D Official Site: http://unity3d.com/
Our Script that we wrote so far:
using UnityEngine;
using System.Collections;
public class BasicGUI : MonoBehaviour
{
Rect buttonRect = new Rect(0, 0, 200, 100);
Rect labelRect = new Rect(0, 110, 200, 100);
Rect boxRect = new Rect(0, 210, 200, 100);
void OnGUI()
{
if(GUI.Button(buttonRect, "Click Me!"))
{
Debug.Log("Hello World");
}
GUI.Box(boxRect, "Im a box!");
GUI.Label(labelRect, "Hello fat boy!");
}
}
In questa pagina del sito puoi guardare il video online Unity Tutorial 6: Basic Scripting: GUI della durata di ore minuti seconda in buona qualità , che l'utente ha caricato UnityEducationSite 05 dicembre 2013, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 528 volte e gli è piaciuto 3 spettatori. Buona visione!