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!");
}
}
En esta página del sitio puede ver el video en línea Unity Tutorial 6: Basic Scripting: GUI de Duración hora minuto segunda en buena calidad , que subió el usuario UnityEducationSite 05 diciembre 2013, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 528 veces y le gustó 3 a los espectadores. Disfruta viendo!