The NGDragButton type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
NGDragButton |
Constructs a new drag button that keeps its state.
|
Methods
Name | Description | |
---|---|---|
DrawDragButton |
This method can be called from anywhere using the usual "UnityGUI" style,
where you need to keep state in your own classes.
| |
DrawMe |
Called from OnGUI to draw this DragButton.
| |
DrawToolTip |
Draws a tooltip for this button, usually with the current coordinates.
|
Fields
Name | Description | |
---|---|---|
maxPosition |
The current max position - usually, this will be Screen.width
and Screen.height (but in editor scripting, we need to fix
some Unity bugs on the fly, so we're
| |
position |
The current position of this DragButton. Can be directly
modified (because it is a public variable and not a public
property as usually in Unity).
|
Properties
Name | Description | |
---|---|---|
IsDragging |
Is the button currently involved in a drag operation?
|
See Also