Class LudiqGUI
Syntax
public static class LudiqGUI
Fields
color
Declaration
public static readonly OverrideStack<Color> color
Field Value
loaderResolution
Declaration
public static readonly TextureResolution loaderResolution
Field Value
loaderSize
Declaration
public const int loaderSize = 24
Field Value
matrix
Declaration
public static readonly OverrideStack<Matrix4x4> matrix
Field Value
Methods
AdaptiveVector2Field(Rect, GUIContent, Vector2)
Declaration
public static Vector2 AdaptiveVector2Field(Rect position, GUIContent label, Vector2 value)
Parameters
Returns
AdaptiveVector3Field(Rect, GUIContent, Vector3)
Declaration
public static Vector3 AdaptiveVector3Field(Rect position, GUIContent label, Vector3 value)
Parameters
Returns
AdaptiveVector4Field(Rect, GUIContent, Vector4)
Declaration
public static Vector4 AdaptiveVector4Field(Rect position, GUIContent label, Vector4 value)
Parameters
Returns
BeginHorizontal(GUILayoutOption[])
Declaration
public static void BeginHorizontal(params GUILayoutOption[] options)
Parameters
BeginHorizontal(GUIStyle, GUILayoutOption[])
Declaration
public static void BeginHorizontal(GUIStyle style, params GUILayoutOption[] options)
Parameters
BeginVertical(GUILayoutOption[])
Declaration
public static void BeginVertical(params GUILayoutOption[] options)
Parameters
CenterLoader()
Declaration
public static void CenterLoader()
CompactVector2Field(Rect, GUIContent, Vector2)
Declaration
public static Vector2 CompactVector2Field(Rect position, GUIContent label, Vector2 value)
Parameters
Returns
CompactVector3Field(Rect, GUIContent, Vector3)
Declaration
public static Vector3 CompactVector3Field(Rect position, GUIContent label, Vector3 value)
Parameters
Returns
CompactVector4Field(Rect, GUIContent, Vector4)
Declaration
public static Vector4 CompactVector4Field(Rect position, GUIContent label, Vector4 value)
Parameters
Returns
DraggableFloatField(Rect, Single, GUIContent)
Declaration
public static float DraggableFloatField(Rect position, float value, GUIContent label = null)
Parameters
Returns
DraggableIntField(Rect, Int32, GUIContent)
Declaration
public static int DraggableIntField(Rect position, int value, GUIContent label = null)
Parameters
Returns
DraggableLongField(Rect, Int64, GUIContent)
Declaration
public static long DraggableLongField(Rect position, long value, GUIContent label = null)
Parameters
Returns
DragNumber(Rect, Boolean, Int32, Int32)
Declaration
public static int DragNumber(Rect hotZone, bool deadZone, int controlId, int value)
Parameters
Returns
DragNumber(Rect, Boolean, Int32, Int64)
Declaration
public static long DragNumber(Rect hotZone, bool deadZone, int controlId, long value)
Parameters
Returns
DragNumber(Rect, Boolean, Int32, Single)
Declaration
public static float DragNumber(Rect hotZone, bool deadZone, int controlId, float value)
Parameters
Returns
DrawEmptyRect(Rect, Color)
Declaration
public static void DrawEmptyRect(Rect position, Color color)
Parameters
Type |
Name |
Description |
Rect |
position |
|
Color |
color |
|
Dropdown(Vector2, Action<HashSet<Object>>, IEnumerable<DropdownOption>, HashSet<Object>, Boolean)
Declaration
public static void Dropdown(Vector2 position, Action<HashSet<object>> callback, IEnumerable<DropdownOption> options, HashSet<object> selected, bool showNothingEverything = true)
Parameters
Dropdown(Vector2, Action<Object>, IEnumerable<DropdownOption>, Object)
Declaration
public static void Dropdown(Vector2 position, Action<object> callback, IEnumerable<DropdownOption> options, object selected)
Parameters
Declaration
public static void Editor(Metadata metadata, Rect position)
Parameters
Declaration
public static void EditorLayout(Metadata metadata)
Parameters
EndHorizontal()
Declaration
public static void EndHorizontal()
EndVertical()
Declaration
public static void EndVertical()
FlexibleSpace()
Declaration
public static void FlexibleSpace()
FuzzyDropdown(Rect, IFuzzyOptionTree, HashSet<Object>, Action<HashSet<Object>>)
Declaration
public static void FuzzyDropdown(Rect activatorPosition, IFuzzyOptionTree optionTree, HashSet<object> selected, Action<HashSet<object>> callback)
Parameters
FuzzyDropdown(Rect, IFuzzyOptionTree, Object, Action<Object>)
Declaration
public static void FuzzyDropdown(Rect activatorPosition, IFuzzyOptionTree optionTree, object selected, Action<object> callback)
Parameters
Declaration
public static HashSet<object> FuzzyPopup(Rect position, Func<IFuzzyOptionTree> getProvider, HashSet<object> selected, bool showNothingEverything = true, GUIContent label = null, GUIStyle style = null)
Parameters
Returns
Declaration
public static object FuzzyPopup(Rect position, Func<IFuzzyOptionTree> getProvider, object selected, GUIContent label = null, GUIStyle style = null)
Parameters
Returns
Declaration
public static float GetEditorHeight(Inspector parentInspector, Metadata metadata, float width)
Parameters
Returns
Declaration
public static GUIContent GetEnumPopupContent(Enum value)
Parameters
Type |
Name |
Description |
Enum |
value |
|
Returns
Declaration
public static float GetHeaderHeight(Inspector parentInspector, Metadata titleMetadata, Metadata summaryMetadata, EditorTexture icon, float totalWidth, bool bottomMargin = true)
Parameters
Returns
Declaration
public static float GetHeaderHeight(LudiqGUI.GetHeaderTitleHeightDelegate getTitleHeight, LudiqGUI.GetHeaderSummaryHeightDelegate getSummaryHeight, EditorTexture icon, float totalWidth, bool bottomMargin = true, float spaceBetweenTitleAndSummary = 0F)
Parameters
Returns
Declaration
public static float GetHeaderHeight(GUIContent header, float totalWidth, bool bottomMargin = true)
Parameters
Returns
Declaration
public static float GetInspectorAdaptiveWidth(Metadata metadata)
Parameters
Returns
GetInspectorHeight(Inspector, Metadata, Single, GUIContent)
Declaration
public static float GetInspectorHeight(Inspector parentInspector, Metadata metadata, float width, GUIContent label = null)
Parameters
Returns
GetTextFieldAdaptiveWidth(Object, Single)
Declaration
public static float GetTextFieldAdaptiveWidth(object content, float min = 16F)
Parameters
Returns
GetTypeFieldAdaptiveWidth(Type, GUIContent)
Declaration
public static float GetTypeFieldAdaptiveWidth(Type type, GUIContent nullLabel = null)
Parameters
Returns
GetTypeFieldHeight(GUIContent, Type)
Declaration
public static float GetTypeFieldHeight(GUIContent label, Type type)
Parameters
Returns
GetVersionMismatchShieldHeight(Single)
Declaration
public static float GetVersionMismatchShieldHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
Declaration
public static HashSet<object> ImmediatePopup(int controlID, bool activated, HashSet<object> selected, Action dropdown)
Parameters
Returns
Declaration
public static object ImmediatePopup(int controlID, bool activated, object selected, Action dropdown)
Parameters
Returns
Inspector(Metadata, Rect, GUIContent)
Declaration
public static void Inspector(Metadata metadata, Rect position, GUIContent label = null)
Parameters
InspectorLayout(Metadata, GUIContent, Single, RectOffset)
Declaration
public static void InspectorLayout(Metadata metadata, GUIContent label = null, float scrollbarTrigger = 14F, RectOffset offset = null)
Parameters
List(Vector2, IList<ListOption>, Object, Action<Object>)
Declaration
public static Vector2 List(Vector2 scroll, IList<ListOption> options, object selected, Action<object> selectionChanged)
Parameters
Returns
Loader(Rect)
Declaration
public static void Loader(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
LoaderLayout()
Declaration
public static void LoaderLayout()
Declaration
public static void OnHeaderGUI(LudiqGUI.GetHeaderTitleHeightDelegate getTitleHeight, LudiqGUI.GetHeaderSummaryHeightDelegate getSummaryHeight, LudiqGUI.OnHeaderTitleGUIDelegate onTitleGUI, LudiqGUI.OnHeaderSummaryGUIDelegate onSummaryGui, EditorTexture icon, Rect position, ref float y, bool bottomMargin = true, float spaceBetweenTitleAndSummary = 0F)
Parameters
Declaration
public static void OnHeaderGUI(Metadata titleMetadata, Metadata summaryMetadata, EditorTexture icon, Rect position, ref float y, bool bottomMargin = true)
Parameters
Declaration
public static void OnHeaderGUI(GUIContent header, Rect position, ref float y, bool bottomMargin = true)
Parameters
Declaration
public static HashSet<object> Popup(Rect position, Func<IEnumerable<DropdownOption>> getOptions, HashSet<object> selected, bool showNothingEverything = true, GUIContent label = null, GUIStyle style = null)
Parameters
Returns
Declaration
public static object Popup(Rect position, Func<IEnumerable<DropdownOption>> getOptions, object selected, GUIContent label = null, GUIStyle style = null)
Parameters
Returns
Space(Single)
Declaration
public static void Space(float pixels)
Parameters
Type |
Name |
Description |
Single |
pixels |
|
Spinner(Rect, Boolean, Boolean)
Declaration
public static int Spinner(Rect position, bool upEnabled = true, bool downEnabled = true)
Parameters
Returns
TypeField(Rect, GUIContent, Type, Func<IFuzzyOptionTree>, GUIContent)
Declaration
public static Type TypeField(Rect position, GUIContent label, Type type, Func<IFuzzyOptionTree> getOptions, GUIContent nullLabel = null)
Parameters
Returns
Declaration
public static void UpdateImmediatePopupValue(object value)
Parameters
Type |
Name |
Description |
Object |
value |
|
Declaration
public static void UpdateImmediatePopupValues(HashSet<object> value)
Parameters
VersionMismatchShield(Rect)
Declaration
public static void VersionMismatchShield(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
VersionMismatchShieldLayout()
Declaration
public static void VersionMismatchShieldLayout()
Declaration
public static void WindowHeader(string label, EditorTexture icon)
Parameters