查看: 4171|回复: 1
打印 上一主题 下一主题

关于Unity3d中添加光标形状 可以运行 不能build的问题?

[复制链接]

2508

主题

2

听众

3万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
32806
精华
12

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2013-4-19 15:19:33 |只看该作者 |倒序浏览
代码: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

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

2722

主题

42

听众

3万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
38266
精华
111

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2013-4-19 15:36:49 |只看该作者
最后面那个title是啥。。?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-9 06:31 , Processed in 0.080945 second(s), 32 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部