找回密码
 立即注册
查看: 7603|回复: 76

[GUI] Unity3D 移动的按钮 附效果图

  [复制链接]
发表于 2012-8-12 22:17 | 显示全部楼层 |阅读模式


[code=javascript]var h=-10;
function OnGUI () {
// This line feeds "This is the tooltip" into GUI.tooltip
h+= 10 * Time.deltaTime;
if(h>= 500)h =500;
GUI.Button (Rect (h+10,10,100,20), GUIContent ("Click me", "This is the tooltip"));
// This line reads and displays the contents of GUI.tooltip
GUI.Label (Rect (10,40,100,20), GUI.tooltip);
}
[/code]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
发表于 2012-11-13 11:23 | 显示全部楼层
楼主加油,我们都看好你哦。
发表于 2012-11-13 15:05 | 显示全部楼层
看到这帖子真是高兴!
发表于 2012-12-6 10:43 | 显示全部楼层
谢谢楼主......
发表于 2012-12-14 15:02 | 显示全部楼层
楼主加油,我们都看好你哦。
发表于 2012-12-14 16:20 | 显示全部楼层
楼主又见了
发表于 2012-12-14 17:22 | 显示全部楼层
{:5_427:}{:5_435:}{:5_427:}
发表于 2017-3-3 12:40 | 显示全部楼层
很好哦
发表于 2017-3-3 12:41 | 显示全部楼层
不错不错
发表于 2017-3-3 12:43 | 显示全部楼层
好帖就是要顶
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-2 11:49 , Processed in 0.114838 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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