纳金网

标题: 关于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


作者: 狂风大尉    时间: 2013-4-19 15:36
最后面那个title是啥。。?




欢迎光临 纳金网 (http://rs.narkii.com/club/) Powered by Discuz! X2.5