Class DefaultControl
Represents the default implementation of a control.
Inherited Members
Namespace: UnityEditor.U2D.Path.GUIFramework
Assembly: Unity.2D.Path.Editor.dll
Syntax
public abstract class DefaultControl : Control
Constructors
DefaultControl(string)
Initializes and returns an instance of DefaultControl
Declaration
public DefaultControl(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the default control. |
Fields
kPickDistance
Default kPickDistance == 5.0f
Declaration
public static readonly float kPickDistance
Field Value
Type | Description |
---|---|
float |
Methods
OnBeginLayout(LayoutData, IGUIState)
Overrides the Control.OnBeginLayout function.
Declaration
protected override LayoutData OnBeginLayout(LayoutData data, IGUIState guiState)
Parameters
Type | Name | Description |
---|---|---|
LayoutData | data | The layout data. |
IGUIState | guiState | The current state of the custom editor. |
Returns
Type | Description |
---|---|
LayoutData | Returns the modified layout data. |
Overrides
Remarks
Sets the LayoutData.distance to DefaultControl.kPickDistance.