GUILayout 界面佈局
相關文檔:GUILayout
The GUILayout class is the interface for Unity gui with automatic layouting.
GUILayout類是用於GUI自動佈局的接口。
Class Functions類函數
- Make an auto-layout label.
創建一個自動佈局的標籤。 - Make an auto-layout box.
創建一個自動佈局的box。 - Make a single press button. The user clicks them and something happens immediately.
創建一個單次按鈕。當用戶點擊按鈕會立即發生一些事件。 - Make a repeating button. The button returns true as long as the user holds down the mouse
創建一個重複按鈕。當用戶點擊按鈕會立即發生一些事件。只要用戶按住鼠標,按鈕返回true。 - Make a single-line text field where the user can edit a string.
創建一個單行文本字段,用戶可以編輯其中的字符串。 - Make a text field where the user can enter a password.
創建一個單行密碼文本字段,用戶可以輸入密碼。 - Make a multi-line text field where the user can edit a string.
創建一個多行密碼文本區域,用戶可以編輯其中字符串。 - Make an on/off toggle button.
創建一個開關按鈕。 - Make a toolbar
創建一個工具欄。 - Make a Selection Grid
創建一個選擇表格。 - A horizontal slider the user can drag to change a value between a min and a max.
創建一個水平滑動條,用戶可以拖動改變在最小和最大值之間的值。 - A vertical slider the user can drag to change a value between a min and a max.
創建一個垂直滑動條,用戶可以拖動改變在最小和最大值之間的值。 - Make a hopriztonal scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scroll views instead.
- 創建水平滾動條。滾動條是能通過滾動來瀏覽文檔,大多數情況下,你可以使用scrollView代替。
- Make a vertical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
- 創建垂直滾動條。滾動條是能通過滾動來瀏覽文檔,大多數情況下,你可以使用scrollView代替。
- Insert a space in the current layout group.
在當前層組插入空白。 - Insert a flexible space element.
插入一個彈性空白元素。 - Begin a Horizontal control group.
開始一個水平控件的組。 - Close a group started with BeginHorizontal
關閉由BeginHorizontal開始的一個組。 - Begin a vertical control group.
開始一個垂直控件的組。 - Close a group started with BeginVertical
關閉由BeginVertical開始的一個組。 - Begin a GUILayout block of GUI controls in a fixed screen area.
在屏幕上開始一個固定大小的佈局區域。 - Close a GUILayout block started with BeginArea
關閉由BeginArea開始GUILayout佈局塊。 - Begin an automatically laid out scrollview.
開始一個自動佈局滾動視圖。 - End a scroll view begun with a call to BeginScrollView.
結束一個由BeginScrollView開始的滾動視圖。 - Make a popup window that layouts its contents automatically.
創建一個彈出窗口,它的內容是自動佈局的。 - Option passed to a control to give it an absolute width.
傳遞給控件的選項,給它一個絕對的寬度。 - Option passed to a control to specify a minimum width.
傳遞給控件指定一個最小寬度的選項。 - Option passed to a control to specify a maximum width.
傳遞給控件指定一個最大寬度的選項。 - Option passed to a control to give it an absolute height.
傳遞給控件的選項,給它一個絕對的高度。 - Option passed to a control to specify a minimum height.
傳遞給控件指定一個最小高度的選項。 - Option passed to a control to specify a maximum height.
傳遞給控件指定一個最大高度的選項。 - Option passed to a control to allow or disallow horizontal expansion.
傳遞給控件是否允許水平液態方向的選項。 - Option passed to a control to allow or disallow vertical expansion.
傳遞給控件是否允許垂直液態方向的選項。