GUI常用的脚本类.docxVIP

  • 3
  • 0
  • 约1.02万字
  • 约 12页
  • 2019-07-14 发布于湖北
  • 举报
GUI常用的脚本类 Posted on 2013年05月27日 by U3d / \o 查看 Unity3D脚本/插件 中的全部文章 Unity3D脚本/插件/被围观 180 次 1 按钮生成 1 view plaincopy 2 function OnGUI () { 3 if (GUI.Button (Rect (10,10,150,100), “I am a button”)) { 4 print (“You clicked the button!”); 5 } 6 } 2 按钮场景载入 01 view plaincopy 02 03   /* Example level loader */ 04 05   function OnGUI () { 06 07   // Make a background box 08 09   GUI.Box (Rect (10,10,100,90), “Loader Menu”); 10 11   // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed 12 13   if (GUI.Button (Rect (20,40,80,20), “Level 1”)) { 14 15   App

文档评论(0)

1亿VIP精品文档

相关文档