- 最后登录
- 2017-5-15
- 注册时间
- 2012-3-1
- 阅读权限
- 90
- 积分
- 32973
  
- 纳金币
- 32806
- 精华
- 12
|
首先我创建了一个空的项目,只添加了一个类,里面的内容如下:
using UnityEngine;
using System.Collections;
using System;
public class Test: MonoBehaviour{
void Start(){}
void Update(){}
public void OnGUI()
{
if(GUI.Button(new Rect(100,60,100,30), "Press me"))
{
GUI.Label(new Rect(100, 100, 300, 300), "You Press");
}
}
}
然后Build&Run ,但是什么也看不到,怎么回事?
|
|