Unity3D 移动的按钮 附效果图
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);
}
楼主加油,我们都看好你哦。 看到这帖子真是高兴! 谢谢楼主...... 楼主加油,我们都看好你哦。 楼主又见了 {:5_427:}{:5_435:}{:5_427:} 很好哦 不错不错 好帖就是要顶