Class Control
Represents a UI control in a custom editor.
Inherited Members
Namespace: UnityEditor .U2D.Path.GUIFramework
Assembly: solution.dll
Syntax
public abstract class Control
Constructors
Name | Description |
---|---|
Control(string) | Initializes and returns an instance of Control |
Properties
Name | Description |
---|---|
ID | The control ID. The GUI uses this to identify the control. |
action |
The action ID. |
hot |
The control's hot layout data |
layout |
The control's layout data. This contains information about the control's position and orientation. |
name | The name of the control. |
Methods
Name | Description |
---|---|
Begin |
Begins the layout for this control. A call to EndLayout must always follow a call to this function. |
End |
Ends the layout for this control. This function must always follow a call to BeginLayout(). |
Get |
Gets the control from the guiState. |
Get |
Gets the number of sub-controllers. |
Get |
Gets the distance from the Scene view camera to the control. |
Get |
Gets the forward vector of the control. |
Get |
Gets the position of the control. |
Get |
Gets the right vector of the control. |
Get |
Gets the up vector of the control. |
Get |
Gets the control's user data. |
Layout(IGUIState) | Gets the control's layout data from the guiState. |
On |
Called when the control begins its layout. |
On |
Called when the control ends its layout. /// |
On |
Called when the control repaints its contents. |
Repaint(IGUIState) | Repaints the control. |