Unity Tutorial 6: Basic Scripting: GUI

Publicado em: 05 Dezembro 2013
no canal de: UnityEducationSite
528
3

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!");
}
}


Nesta página do site você pode assistir ao vídeo on-line Unity Tutorial 6: Basic Scripting: GUI duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário UnityEducationSite 05 Dezembro 2013, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 528 vezes e gostou 3 espectadores. Boa visualização!