GUI —— 需要指定 Rect 繪製 GUI
GUILayout —— 自動佈局繪製 GUI
GUIContent —— what to render
GUIStyle —— how to render
GUIElement —— 是 GUITexture 和 GUIText 的基類,雖然這兩個類已經淘汰了。。。
GUIText
GUITexture
GUILayer —— 已經淘汰的組件,添加到攝像機上,用它來渲染2D GUI
GUILayoutOption —— 作爲 GUILayout 靜態方法的參數,用法還挺特殊的 -_-||
//GUILayout.Width GUILayout.Height
//GUILayout.MinWidth GUILayout.MaxWidth
//GUILayout.MinHeight GUILayout.MaxHeight
//GUILayout.ExpandWidth GUILayout.ExpandHeight
void OnGUI()
{
GUILayout.Button("A Button with fixed width", GUILayout.Width(300));
}
GUIUtility —— 創建新控件的實用類,但是除非你正在從頭到尾創建你自己的GUI Controls,不要輕易使用這個類
GUILayoutUtility —— 同上,不是特別好用的類
GUISettings —— GUI行爲的一般設置。GUISkin中的所有元素都共享GUISettings的這些屬性。
GUISkin —— 定義GUI的外觀和行爲。GUISkin包含GUISettings和GUIStyle對象的集合,這些對象一起指定GUI外觀。正在使用的GUISkin是通過GUI.skin獲取和設置的。
GUIStyleState —— GUIStyle對象使用的給定狀態的專用值。GUIStyle包含用於顯示GUI元素的所有值。
EditorGUI
EditorGUILayout
EditorGUIUtility —— 各種各樣的輔助功能,和 GUIUtility、GUILayoutUtility的自定義控件不同。
EditorStyles —— 用於 EditorGUI 控件的通用 GUIStyle
EditorUtility —— 編輯器的輔助功能,這個有用,例如 DisplayDialog 、OpenFilePanel、OpenFolderPanel