U3D学习之GUILayout的变量与方法

GUILayout

class in UnityEngine

Description

The GUILayout class is the interface for Unity gui with automatic layout.


See Also: GUI Layout tutorial.

Static Functions

BeginAreaBegin a GUILayout block of GUI controls in a fixed screen area.
BeginHorizontalBegin a Horizontal control group.
BeginScrollViewBegin an automatically laid out scrollview.
BeginVerticalBegin a vertical control group.
BoxMake an auto-layout box.
ButtonMake a single press button. The user clicks them and something happens immediately.
EndAreaClose a GUILayout block started with BeginArea.


EndHorizontalClose a group started with BeginHorizontal.
EndScrollViewEnd a scroll view begun with a call to BeginScrollView.
EndVerticalClose a group started with BeginVertical.
ExpandHeightOption passed to a control to allow or disallow vertical expansion.
ExpandWidthOption passed to a control to allow or disallow horizontal expansion.
FlexibleSpaceInsert a flexible space element.
HeightOption passed to a control to give it an absolute height.
HorizontalScrollbarMake a horizontal scrollbar.
HorizontalSliderA horizontal slider the user can drag to change a value between a min and a max.
LabelMake an auto-layout label.
MaxHeightOption passed to a control to specify a maximum height.
MaxWidthOption passed to a control to specify a maximum width.
MinHeightOption passed to a control to specify a minimum height.
MinWidthOption passed to a control to specify a minimum width.
PasswordFieldMake a text field where the user can enter a password.
RepeatButtonMake a repeating button. The button returns true as long as the user holds down the mouse.
SelectionGridMake a Selection Grid.
SpaceInsert a space in the current layout group.
TextAreaMake a multi-line text field where the user can edit a string.
TextFieldMake a single-line text field where the user can edit a string.
ToggleMake an on/off toggle button.
ToolbarMake a toolbar.
VerticalScrollbarMake a vertical scrollbar.
VerticalSliderA vertical slider the user can drag to change a value between a min and a max.
WidthOption passed to a control to give it an absolute width.
WindowMake a popup window that layouts its contents automatically.
EndHorizontalClose a group started with BeginHorizontal.
EndScrollViewEnd a scroll view begun with a call to BeginScrollView.
EndVerticalClose a group started with BeginVertical.
ExpandHeightOption passed to a control to allow or disallow vertical expansion.
ExpandWidthOption passed to a control to allow or disallow horizontal expansion.
FlexibleSpaceInsert a flexible space element.
HeightOption passed to a control to give it an absolute height.
HorizontalScrollbarMake a horizontal scrollbar.
HorizontalSliderA horizontal slider the user can drag to change a value between a min and a max.
LabelMake an auto-layout label.
MaxHeightOption passed to a control to specify a maximum height.
MaxWidthOption passed to a control to specify a maximum width.
MinHeightOption passed to a control to specify a minimum height.
MinWidthOption passed to a control to specify a minimum width.
PasswordFieldMake a text field where the user can enter a password.
RepeatButtonMake a repeating button. The button returns true as long as the user holds down the mouse.
SelectionGridMake a Selection Grid.
SpaceInsert a space in the current layout group.
TextAreaMake a multi-line text field where the user can edit a string.
TextFieldMake a single-line text field where the user can edit a string.
ToggleMake an on/off toggle button.
ToolbarMake a toolbar.
VerticalScrollbarMake a vertical scrollbar.
VerticalSliderA vertical slider the user can drag to change a value between a min and a max.
WidthOption passed to a control to give it an absolute width.
WindowMake a popup window that layouts its contents automatically.
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值