docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LudiqGUI

    Inheritance
    object
    LudiqGUI
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VisualScripting
    Assembly: Unity.VisualScripting.Core.Editor.dll
    Syntax
    public static class LudiqGUI

    Fields

    color

    Declaration
    public static readonly OverrideStack<Color> color
    Field Value
    Type Description
    OverrideStack<Color>

    loaderResolution

    Declaration
    public static readonly TextureResolution loaderResolution
    Field Value
    Type Description
    TextureResolution

    loaderSize

    Declaration
    public const int loaderSize = 24
    Field Value
    Type Description
    int

    matrix

    Declaration
    public static readonly OverrideStack<Matrix4x4> matrix
    Field Value
    Type Description
    OverrideStack<Matrix4x4>

    Methods

    AdaptiveVector2Field(Rect, GUIContent, Vector2)

    Declaration
    public static Vector2 AdaptiveVector2Field(Rect position, GUIContent label, Vector2 value)
    Parameters
    Type Name Description
    Rect position
    GUIContent label
    Vector2 value
    Returns
    Type Description
    Vector2

    AdaptiveVector3Field(Rect, GUIContent, Vector3)

    Declaration
    public static Vector3 AdaptiveVector3Field(Rect position, GUIContent label, Vector3 value)
    Parameters
    Type Name Description
    Rect position
    GUIContent label
    Vector3 value
    Returns
    Type Description
    Vector3

    AdaptiveVector4Field(Rect, GUIContent, Vector4)

    Declaration
    public static Vector4 AdaptiveVector4Field(Rect position, GUIContent label, Vector4 value)
    Parameters
    Type Name Description
    Rect position
    GUIContent label
    Vector4 value
    Returns
    Type Description
    Vector4

    BeginHorizontal(params GUILayoutOption[])

    Declaration
    public static void BeginHorizontal(params GUILayoutOption[] options)
    Parameters
    Type Name Description
    GUILayoutOption[] options

    BeginHorizontal(GUIStyle, params GUILayoutOption[])

    Declaration
    public static void BeginHorizontal(GUIStyle style, params GUILayoutOption[] options)
    Parameters
    Type Name Description
    GUIStyle style
    GUILayoutOption[] options

    BeginVertical(params GUILayoutOption[])

    Declaration
    public static void BeginVertical(params GUILayoutOption[] options)
    Parameters
    Type Name Description
    GUILayoutOption[] options

    CenterLoader()

    Declaration
    public static void CenterLoader()

    CompactVector2Field(Rect, GUIContent, Vector2)

    Declaration
    public static Vector2 CompactVector2Field(Rect position, GUIContent label, Vector2 value)
    Parameters
    Type Name Description
    Rect position
    GUIContent label
    Vector2 value
    Returns
    Type Description
    Vector2

    CompactVector3Field(Rect, GUIContent, Vector3)

    Declaration
    public static Vector3 CompactVector3Field(Rect position, GUIContent label, Vector3 value)
    Parameters
    Type Name Description
    Rect position
    GUIContent label
    Vector3 value
    Returns
    Type Description
    Vector3

    CompactVector4Field(Rect, GUIContent, Vector4)

    Declaration
    public static Vector4 CompactVector4Field(Rect position, GUIContent label, Vector4 value)
    Parameters
    Type Name Description
    Rect position
    GUIContent label
    Vector4 value
    Returns
    Type Description
    Vector4

    DragNumber(Rect, bool, int, int)

    Declaration
    public static int DragNumber(Rect hotZone, bool deadZone, int controlId, int value)
    Parameters
    Type Name Description
    Rect hotZone
    bool deadZone
    int controlId
    int value
    Returns
    Type Description
    int

    DragNumber(Rect, bool, int, long)

    Declaration
    public static long DragNumber(Rect hotZone, bool deadZone, int controlId, long value)
    Parameters
    Type Name Description
    Rect hotZone
    bool deadZone
    int controlId
    long value
    Returns
    Type Description
    long

    DragNumber(Rect, bool, int, float)

    Declaration
    public static float DragNumber(Rect hotZone, bool deadZone, int controlId, float value)
    Parameters
    Type Name Description
    Rect hotZone
    bool deadZone
    int controlId
    float value
    Returns
    Type Description
    float

    DraggableFloatField(Rect, float, GUIContent)

    Declaration
    public static float DraggableFloatField(Rect position, float value, GUIContent label = null)
    Parameters
    Type Name Description
    Rect position
    float value
    GUIContent label
    Returns
    Type Description
    float

    DraggableIntField(Rect, int, GUIContent)

    Declaration
    public static int DraggableIntField(Rect position, int value, GUIContent label = null)
    Parameters
    Type Name Description
    Rect position
    int value
    GUIContent label
    Returns
    Type Description
    int

    DraggableLongField(Rect, long, GUIContent)

    Declaration
    public static long DraggableLongField(Rect position, long value, GUIContent label = null)
    Parameters
    Type Name Description
    Rect position
    long value
    GUIContent label
    Returns
    Type Description
    long

    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>, bool)

    Declaration
    public static void Dropdown(Vector2 position, Action<HashSet<object>> callback, IEnumerable<DropdownOption> options, HashSet<object> selected, bool showNothingEverything = true)
    Parameters
    Type Name Description
    Vector2 position
    Action<HashSet<object>> callback
    IEnumerable<DropdownOption> options
    HashSet<object> selected
    bool showNothingEverything

    Dropdown(Vector2, Action<object>, IEnumerable<DropdownOption>, object)

    Declaration
    public static void Dropdown(Vector2 position, Action<object> callback, IEnumerable<DropdownOption> options, object selected)
    Parameters
    Type Name Description
    Vector2 position
    Action<object> callback
    IEnumerable<DropdownOption> options
    object selected

    Editor(Metadata, Rect)

    Declaration
    public static void Editor(Metadata metadata, Rect position)
    Parameters
    Type Name Description
    Metadata metadata
    Rect position

    EditorLayout(Metadata)

    Declaration
    public static void EditorLayout(Metadata metadata)
    Parameters
    Type Name Description
    Metadata metadata

    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
    Type Name Description
    Rect activatorPosition
    IFuzzyOptionTree optionTree
    HashSet<object> selected
    Action<HashSet<object>> callback

    FuzzyDropdown(Rect, IFuzzyOptionTree, object, Action<object>)

    Declaration
    public static void FuzzyDropdown(Rect activatorPosition, IFuzzyOptionTree optionTree, object selected, Action<object> callback)
    Parameters
    Type Name Description
    Rect activatorPosition
    IFuzzyOptionTree optionTree
    object selected
    Action<object> callback

    FuzzyPopup(Rect, Func<IFuzzyOptionTree>, HashSet<object>, bool, GUIContent, GUIStyle)

    Declaration
    public static HashSet<object> FuzzyPopup(Rect position, Func<IFuzzyOptionTree> getProvider, HashSet<object> selected, bool showNothingEverything = true, GUIContent label = null, GUIStyle style = null)
    Parameters
    Type Name Description
    Rect position
    Func<IFuzzyOptionTree> getProvider
    HashSet<object> selected
    bool showNothingEverything
    GUIContent label
    GUIStyle style
    Returns
    Type Description
    HashSet<object>

    FuzzyPopup(Rect, Func<IFuzzyOptionTree>, object, GUIContent, GUIStyle)

    Declaration
    public static object FuzzyPopup(Rect position, Func<IFuzzyOptionTree> getProvider, object selected, GUIContent label = null, GUIStyle style = null)
    Parameters
    Type Name Description
    Rect position
    Func<IFuzzyOptionTree> getProvider
    object selected
    GUIContent label
    GUIStyle style
    Returns
    Type Description
    object

    GetEditorHeight(Inspector, Metadata, float)

    Declaration
    public static float GetEditorHeight(Inspector parentInspector, Metadata metadata, float width)
    Parameters
    Type Name Description
    Inspector parentInspector
    Metadata metadata
    float width
    Returns
    Type Description
    float

    GetEnumPopupContent(Enum)

    Declaration
    public static GUIContent GetEnumPopupContent(Enum value)
    Parameters
    Type Name Description
    Enum value
    Returns
    Type Description
    GUIContent

    GetHeaderHeight(Inspector, Metadata, Metadata, EditorTexture, float, bool)

    Declaration
    public static float GetHeaderHeight(Inspector parentInspector, Metadata titleMetadata, Metadata summaryMetadata, EditorTexture icon, float totalWidth, bool bottomMargin = true)
    Parameters
    Type Name Description
    Inspector parentInspector
    Metadata titleMetadata
    Metadata summaryMetadata
    EditorTexture icon
    float totalWidth
    bool bottomMargin
    Returns
    Type Description
    float

    GetHeaderHeight(GetHeaderTitleHeightDelegate, GetHeaderSummaryHeightDelegate, EditorTexture, float, bool, float)

    Declaration
    public static float GetHeaderHeight(LudiqGUI.GetHeaderTitleHeightDelegate getTitleHeight, LudiqGUI.GetHeaderSummaryHeightDelegate getSummaryHeight, EditorTexture icon, float totalWidth, bool bottomMargin = true, float spaceBetweenTitleAndSummary = 0)
    Parameters
    Type Name Description
    LudiqGUI.GetHeaderTitleHeightDelegate getTitleHeight
    LudiqGUI.GetHeaderSummaryHeightDelegate getSummaryHeight
    EditorTexture icon
    float totalWidth
    bool bottomMargin
    float spaceBetweenTitleAndSummary
    Returns
    Type Description
    float

    GetHeaderHeight(GUIContent, float, bool)

    Declaration
    public static float GetHeaderHeight(GUIContent header, float totalWidth, bool bottomMargin = true)
    Parameters
    Type Name Description
    GUIContent header
    float totalWidth
    bool bottomMargin
    Returns
    Type Description
    float

    GetInspectorAdaptiveWidth(Metadata)

    Declaration
    public static float GetInspectorAdaptiveWidth(Metadata metadata)
    Parameters
    Type Name Description
    Metadata metadata
    Returns
    Type Description
    float

    GetInspectorHeight(Inspector, Metadata, float, GUIContent)

    Declaration
    public static float GetInspectorHeight(Inspector parentInspector, Metadata metadata, float width, GUIContent label = null)
    Parameters
    Type Name Description
    Inspector parentInspector
    Metadata metadata
    float width
    GUIContent label
    Returns
    Type Description
    float

    GetTextFieldAdaptiveWidth(object, float)

    Declaration
    public static float GetTextFieldAdaptiveWidth(object content, float min = 16)
    Parameters
    Type Name Description
    object content
    float min
    Returns
    Type Description
    float

    GetTypeFieldAdaptiveWidth(Type, GUIContent)

    Declaration
    public static float GetTypeFieldAdaptiveWidth(Type type, GUIContent nullLabel = null)
    Parameters
    Type Name Description
    Type type
    GUIContent nullLabel
    Returns
    Type Description
    float

    GetTypeFieldHeight(GUIContent, Type)

    Declaration
    public static float GetTypeFieldHeight(GUIContent label, Type type)
    Parameters
    Type Name Description
    GUIContent label
    Type type
    Returns
    Type Description
    float

    GetVersionMismatchShieldHeight(float)

    Declaration
    public static float GetVersionMismatchShieldHeight(float width)
    Parameters
    Type Name Description
    float width
    Returns
    Type Description
    float

    ImmediatePopup(int, bool, HashSet<object>, Action)

    Declaration
    public static HashSet<object> ImmediatePopup(int controlID, bool activated, HashSet<object> selected, Action dropdown)
    Parameters
    Type Name Description
    int controlID
    bool activated
    HashSet<object> selected
    Action dropdown
    Returns
    Type Description
    HashSet<object>

    ImmediatePopup(int, bool, object, Action)

    Declaration
    public static object ImmediatePopup(int controlID, bool activated, object selected, Action dropdown)
    Parameters
    Type Name Description
    int controlID
    bool activated
    object selected
    Action dropdown
    Returns
    Type Description
    object

    Inspector(Metadata, Rect, GUIContent)

    Declaration
    public static void Inspector(Metadata metadata, Rect position, GUIContent label = null)
    Parameters
    Type Name Description
    Metadata metadata
    Rect position
    GUIContent label

    InspectorLayout(Metadata, GUIContent, float, RectOffset)

    Declaration
    public static void InspectorLayout(Metadata metadata, GUIContent label = null, float scrollbarTrigger = 14, RectOffset offset = null)
    Parameters
    Type Name Description
    Metadata metadata
    GUIContent label
    float scrollbarTrigger
    RectOffset offset

    List(Vector2, IList<ListOption>, object, Action<object>)

    Declaration
    public static Vector2 List(Vector2 scroll, IList<ListOption> options, object selected, Action<object> selectionChanged)
    Parameters
    Type Name Description
    Vector2 scroll
    IList<ListOption> options
    object selected
    Action<object> selectionChanged
    Returns
    Type Description
    Vector2

    Loader(Rect)

    Declaration
    public static void Loader(Rect position)
    Parameters
    Type Name Description
    Rect position

    LoaderLayout()

    Declaration
    public static void LoaderLayout()

    OnHeaderGUI(GetHeaderTitleHeightDelegate, GetHeaderSummaryHeightDelegate, OnHeaderTitleGUIDelegate, OnHeaderSummaryGUIDelegate, EditorTexture, Rect, ref float, bool, float)

    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 = 0)
    Parameters
    Type Name Description
    LudiqGUI.GetHeaderTitleHeightDelegate getTitleHeight
    LudiqGUI.GetHeaderSummaryHeightDelegate getSummaryHeight
    LudiqGUI.OnHeaderTitleGUIDelegate onTitleGUI
    LudiqGUI.OnHeaderSummaryGUIDelegate onSummaryGui
    EditorTexture icon
    Rect position
    float y
    bool bottomMargin
    float spaceBetweenTitleAndSummary

    OnHeaderGUI(Metadata, Metadata, EditorTexture, Rect, ref float, bool)

    Declaration
    public static void OnHeaderGUI(Metadata titleMetadata, Metadata summaryMetadata, EditorTexture icon, Rect position, ref float y, bool bottomMargin = true)
    Parameters
    Type Name Description
    Metadata titleMetadata
    Metadata summaryMetadata
    EditorTexture icon
    Rect position
    float y
    bool bottomMargin

    OnHeaderGUI(GUIContent, Rect, ref float, bool)

    Declaration
    public static void OnHeaderGUI(GUIContent header, Rect position, ref float y, bool bottomMargin = true)
    Parameters
    Type Name Description
    GUIContent header
    Rect position
    float y
    bool bottomMargin

    Popup(Rect, Func<IEnumerable<DropdownOption>>, HashSet<object>, bool, GUIContent, GUIStyle)

    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
    Type Name Description
    Rect position
    Func<IEnumerable<DropdownOption>> getOptions
    HashSet<object> selected
    bool showNothingEverything
    GUIContent label
    GUIStyle style
    Returns
    Type Description
    HashSet<object>

    Popup(Rect, Func<IEnumerable<DropdownOption>>, object, GUIContent, GUIStyle)

    Declaration
    public static object Popup(Rect position, Func<IEnumerable<DropdownOption>> getOptions, object selected, GUIContent label = null, GUIStyle style = null)
    Parameters
    Type Name Description
    Rect position
    Func<IEnumerable<DropdownOption>> getOptions
    object selected
    GUIContent label
    GUIStyle style
    Returns
    Type Description
    object

    Space(float)

    Declaration
    public static void Space(float pixels)
    Parameters
    Type Name Description
    float pixels

    Spinner(Rect, bool, bool)

    Declaration
    public static int Spinner(Rect position, bool upEnabled = true, bool downEnabled = true)
    Parameters
    Type Name Description
    Rect position
    bool upEnabled
    bool downEnabled
    Returns
    Type Description
    int

    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
    Type Name Description
    Rect position
    GUIContent label
    Type type
    Func<IFuzzyOptionTree> getOptions
    GUIContent nullLabel
    Returns
    Type Description
    Type

    UpdateImmediatePopupValue(object)

    Declaration
    public static void UpdateImmediatePopupValue(object value)
    Parameters
    Type Name Description
    object value

    UpdateImmediatePopupValues(HashSet<object>)

    Declaration
    public static void UpdateImmediatePopupValues(HashSet<object> value)
    Parameters
    Type Name Description
    HashSet<object> value

    VersionMismatchShield(Rect)

    Declaration
    public static void VersionMismatchShield(Rect position)
    Parameters
    Type Name Description
    Rect position

    VersionMismatchShieldLayout()

    Declaration
    public static void VersionMismatchShieldLayout()

    WindowHeader(string, EditorTexture)

    Declaration
    public static void WindowHeader(string label, EditorTexture icon)
    Parameters
    Type Name Description
    string label
    EditorTexture icon
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)