guilayout专题

王立平--GUI与GUILayout的区别

GUI.Button (new Rect(0,0,5,5,"哈哈"); GUILayout.Button ("heheh"); 1.以上代码都是现实一个按钮 2.不同之处: GUI中需要通过new Rect()指定button的位置,不灵活 GUILayout不需要指定位置,会自动确定现实位置,较为灵活。

Unity 编辑器篇|(五)编辑器拓展GUILayout类 (全面总结 | 建议收藏)

目录 1. 前言2. 参数3. 功能3.1 按钮:Button、RepeatButton3.2 文本:Label、TextArea、TextField、PasswordField3.3 工具栏:Toolbar3.4 切换框:Toggle3.5 滚动条:HorizontalScroll 、VerticalScroll3.6 滑条:HorizontalSlider、VerticalSlider3