docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GenericDefaultControl

    Represents a default generic UI control.

    Inheritance
    object
    Control
    DefaultControl
    GenericDefaultControl
    Inherited Members
    DefaultControl.kPickDistance
    DefaultControl.OnBeginLayout(LayoutData, IGUIState)
    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)
    Control.OnEndLayout(IGUIState)
    Control.OnRepaint(IGUIState, int)
    Control.GetCount()
    Control.GetDistance(IGUIState, int)
    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 GenericDefaultControl : DefaultControl

    Constructors

    GenericDefaultControl(string)

    Initializes and returns an instance of GenericDefaultControl

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

    The name of the generic default control.

    Fields

    forward

    Func for GetForward

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

    position

    Func for GetPosition

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

    right

    Func for GetRight

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

    up

    Func for GetUp

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

    userData

    Func for GetUserData

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

    Methods

    GetForward(IGUIState, int)

    Gets the forward vector of the control.

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

    The current state of the custom editor.

    int index

    The Index

    Returns
    Type Description
    Vector3

    Returns the generic control's forward vector.

    Overrides
    Control.GetForward(IGUIState, int)

    GetPosition(IGUIState, int)

    Gets the distance from the Scene view camera to the control.

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

    The current state of the custom editor.

    int index

    The Index

    Returns
    Type Description
    Vector3

    The distance from the Scene view camera to the control.

    Overrides
    Control.GetPosition(IGUIState, int)

    GetRight(IGUIState, int)

    Gets the right vector of the control.

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

    The current state of the custom editor.

    int index

    The Index

    Returns
    Type Description
    Vector3

    Returns the generic control's right vector.

    Overrides
    Control.GetRight(IGUIState, int)

    GetUp(IGUIState, int)

    Gets the up vector of the control.

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

    The current state of the custom editor.

    int index

    The Index

    Returns
    Type Description
    Vector3

    Returns the generic control's up vector.

    Overrides
    Control.GetUp(IGUIState, int)

    GetUserData(IGUIState, int)

    Gets the control's user data.

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

    The current state of the custom editor.

    int index

    The Index

    Returns
    Type Description
    object

    Returns the user data

    Overrides
    Control.GetUserData(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)