Class GenericDefaultControl
Represents a default generic UI control.
Inherited Members
Namespace: UnityEditor.U2D.Path.GUIFramework
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, Int32)
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. |
| Int32 | index | The Index |
Returns
| Type | Description |
|---|---|
| Vector3 | Returns the generic control's forward vector. |
Overrides
GetPosition(IGUIState, Int32)
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. |
| Int32 | index | The Index |
Returns
| Type | Description |
|---|---|
| Vector3 | The distance from the Scene view camera to the control. |
Overrides
GetRight(IGUIState, Int32)
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. |
| Int32 | index | The Index |
Returns
| Type | Description |
|---|---|
| Vector3 | Returns the generic control's right vector. |
Overrides
GetUp(IGUIState, Int32)
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. |
| Int32 | index | The Index |
Returns
| Type | Description |
|---|---|
| Vector3 | Returns the generic control's up vector. |
Overrides
GetUserData(IGUIState, Int32)
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. |
| Int32 | index | The Index |
Returns
| Type | Description |
|---|---|
| Object | Returns the user data |