- 最后登录
- 2017-5-15
- 注册时间
- 2012-3-1
- 阅读权限
- 90
- 积分
- 32973
- 纳金币
- 32806
- 精华
- 12
|
代码:function OnGUI()
{
// show the "Link" cursor when the mouse is howering over this rectangle.
EditorGUIUtility.AddCursorRect (Rect(10,10,100,100), MouseCursor.Link);
}
直接点击运行可以 没有问题
当点击 build时候出现以下几个错误;
1Assets/MyWindow.js(4,1): BCE0005: Unknown identifier: 'EditorGUIUtility'.
2Assets/MyWindow.js(4,54): BCE0005: Unknown identifier: 'MouseCursor'.
3Error building Player because scripts had compiler errors
UnityEditor.HostView:OnGUI()
4Exception: Error building Player because scripts had compiler errors................
� ;title
|
|