docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GenericControl

    Inheritance
    object
    Control
    GenericControl
    Inherited Members
    Control.name
    Control.ID
    Control.actionID
    Control.layoutData
    Control.hotLayoutData
    Control.GetControl(IGUIState)
    Control.BeginLayout(IGUIState)
    Control.Layout(IGUIState)
    Control.EndLayout(IGUIState)
    Control.Repaint(IGUIState)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.U2D.Path.GUIFramework
    Assembly: Unity.2D.Path.Editor.dll
    Syntax
    public class GenericControl : Control

    Constructors

    GenericControl(string)

    Declaration
    public GenericControl(string name)
    Parameters
    Type Name Description
    string name

    Fields

    count

    Declaration
    public Func<int> count
    Field Value
    Type Description
    Func<int>

    distance

    Declaration
    public Func<IGUIState, int, float> distance
    Field Value
    Type Description
    Func<IGUIState, int, float>

    forward

    Declaration
    public Func<int, Vector3> forward
    Field Value
    Type Description
    Func<int, Vector3>

    onBeginLayout

    Declaration
    public Func<IGUIState, LayoutData> onBeginLayout
    Field Value
    Type Description
    Func<IGUIState, LayoutData>

    onEndLayout

    Declaration
    public Action<IGUIState> onEndLayout
    Field Value
    Type Description
    Action<IGUIState>

    onRepaint

    Declaration
    public Action<IGUIState, Control, int> onRepaint
    Field Value
    Type Description
    Action<IGUIState, Control, int>

    position

    Declaration
    public Func<int, Vector3> position
    Field Value
    Type Description
    Func<int, Vector3>

    right

    Declaration
    public Func<int, Vector3> right
    Field Value
    Type Description
    Func<int, Vector3>

    up

    Declaration
    public Func<int, Vector3> up
    Field Value
    Type Description
    Func<int, Vector3>

    userData

    Declaration
    public Func<int, object> userData
    Field Value
    Type Description
    Func<int, object>

    Methods

    GetCount()

    Declaration
    protected override int GetCount()
    Returns
    Type Description
    int
    Overrides
    Control.GetCount()

    GetDistance(IGUIState, int)

    Declaration
    protected override float GetDistance(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Returns
    Type Description
    float
    Overrides
    Control.GetDistance(IGUIState, int)

    GetForward(IGUIState, int)

    Declaration
    protected override Vector3 GetForward(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Returns
    Type Description
    Vector3
    Overrides
    Control.GetForward(IGUIState, int)

    GetPosition(IGUIState, int)

    Declaration
    protected override Vector3 GetPosition(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Returns
    Type Description
    Vector3
    Overrides
    Control.GetPosition(IGUIState, int)

    GetRight(IGUIState, int)

    Declaration
    protected override Vector3 GetRight(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Returns
    Type Description
    Vector3
    Overrides
    Control.GetRight(IGUIState, int)

    GetUp(IGUIState, int)

    Declaration
    protected override Vector3 GetUp(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Returns
    Type Description
    Vector3
    Overrides
    Control.GetUp(IGUIState, int)

    GetUserData(IGUIState, int)

    Declaration
    protected override object GetUserData(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Returns
    Type Description
    object
    Overrides
    Control.GetUserData(IGUIState, int)

    OnBeginLayout(LayoutData, IGUIState)

    Declaration
    protected override LayoutData OnBeginLayout(LayoutData data, IGUIState guiState)
    Parameters
    Type Name Description
    LayoutData data
    IGUIState guiState
    Returns
    Type Description
    LayoutData
    Overrides
    Control.OnBeginLayout(LayoutData, IGUIState)

    OnEndLayout(IGUIState)

    Declaration
    protected override void OnEndLayout(IGUIState guiState)
    Parameters
    Type Name Description
    IGUIState guiState
    Overrides
    Control.OnEndLayout(IGUIState)

    OnRepaint(IGUIState, int)

    Declaration
    protected override void OnRepaint(IGUIState guiState, int index)
    Parameters
    Type Name Description
    IGUIState guiState
    int index
    Overrides
    Control.OnRepaint(IGUIState, int)
    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)