找回密码
 立即注册
楼主: chu35177

[常见问题] unity 自带GUILayout.Label 怎么判断 单击 事件?

[复制链接]
发表于 2012-12-19 14:23 | 显示全部楼层 |阅读模式
unity 自带GUILayout.Label  怎么判断 单击 事件? 谢谢大家了
发表于 2012-12-19 15:32 | 显示全部楼层
if (guiText.HitTest (Vector3(360, 450, 0)))
    print ("This gui texture covers pixel 360, 450");

点评

谢谢 我去试试。  详情 回复 发表于 2012-12-19 17:33
 楼主| 发表于 2012-12-19 17:33 | 显示全部楼层
神秘入侵者 发表于 2012-12-19 15:32
if (guiText.HitTest (Vector3(360, 450, 0)))
    print ("This gui texture covers pixel 360, 450");

谢谢 我去试试。
发表于 2013-1-8 11:35 | 显示全部楼层
这个帖子不错,大家快来顶起来!
发表于 2017-4-1 10:57 | 显示全部楼层
很不错
发表于 2017-4-1 10:53 | 显示全部楼层
好帖就是要顶
发表于 2017-4-1 11:13 | 显示全部楼层
难得一见的好帖
发表于 2017-4-1 10:58 | 显示全部楼层
说的非常好
发表于 2017-4-1 11:21 | 显示全部楼层
LZ真是人才
发表于 2017-7-8 17:01 | 显示全部楼层
很不错
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-5-5 04:31 , Processed in 0.107092 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表