Class DefaultControl
Represents the default implementation of a control.
Inherited Members
Namespace: UnityEditor.U2D.Path.GUIFramework
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 |
|---|---|
| Single |
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.