标题: 关于Unity3d中添加光标形状 可以运行 不能build的问题? [打印本页] 作者: 她。 时间: 2013-4-19 15:19 标题: 关于Unity3d中添加光标形状 可以运行 不能build的问题? 代码: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