【发布时间】:2014-11-07 07:06:10
【问题描述】:
我已经在 MonoDevelop 中输入此代码,并将其拖到主摄像头。
using UnityEngine;
using System.Collections;
public class test : MonoBehaviour {
void onGUI() {
GUI.Button(new Rect(Screen.width * 0.5f, Screen.height * 0.5f, 200, 50), "Click ME!");
}
}
但按钮仍然没有出现。我错过了什么?
【问题讨论】:
标签: c# button user-interface unity3d monodevelop