NGDragButton MembersScoreFlash API Documentation V4.6.0

The NGDragButton type exposes the following members.
Constructors

  NameDescription
Public methodNGDragButton
Constructs a new drag button that keeps its state.
Back to Top
Methods

  NameDescription
Public methodStatic memberDrawDragButton
This method can be called from anywhere using the usual "UnityGUI" style, where you need to keep state in your own classes.
Public methodDrawMe
Called from OnGUI to draw this DragButton.
Public methodDrawToolTip
Draws a tooltip for this button, usually with the current coordinates.
Back to Top
Fields

  NameDescription
Public fieldmaxPosition
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
Public fieldposition
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).
Back to Top
Properties

  NameDescription
Public propertyIsDragging
Is the button currently involved in a drag operation?
Back to Top
See Also