Class GUIState
An implementation of an IGUIState that represents a generic GUI state.
Implements
Inherited Members
Namespace: UnityEditor .U2D.Path.GUIFramework
Assembly: solution.dll
Syntax
public class GUIState : IGUIState
Properties
Name | Description |
---|---|
changed | Indicates whether the GUI has changed. |
click |
The current number of mouse clicks. |
command |
The name of the current event's command. |
event |
The type of the current event. |
hot |
Hot Control |
is |
Indicates whether the action key is pressed. |
is |
Indicates whether the alt key is pressed. |
is |
Indicates whether the shift key is pressed. |
key |
The KeyCode of the currently pressed key. |
mouse |
The currently pressed button. |
mouse |
The current mouse position. |
nearest |
The closest control to the event. |
Methods
Name | Description |
---|---|
Add |
Adds a control to the GUIState. |
Distance |
Measures the distance to a circle. |
Distance |
Measures the GUI-space distance between two points of a segment. |
GUITo |
Transforms a GUI-space position into world space. |
Get |
Gets the ID of a nested control by a hint and focus type. |
Get |
Gets the size of the handle. |
Has |
Checks if the current camera is valid. |
Repaint() | Repaints the GUI. |
Slider(int, Slider |
Checks whether a slider value has changed. |
Use |
Uses the current event. |