Click or drag to resize

MouseCursor Class

Cursor for mouse pointers.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.Behaviors.CursorsPointerCursor
            TouchScript.Behaviors.CursorsTextPointerCursorMousePointer
              TouchScript.Behaviors.CursorsMouseCursor

Namespace:  TouchScript.Behaviors.Cursors
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class MouseCursor : TextPointerCursor<MousePointer>

The MouseCursor type exposes the following members.

Constructors
  NameDescription
Public methodMouseCursor
Initializes a new instance of the MouseCursor class
Top
Properties
  NameDescription
Public propertySize
Cursor size in pixels.
(Inherited from PointerCursor.)
Top
Methods
  NameDescription
Protected methodgenerateText
Generates text for pointer.
(Overrides TextPointerCursorTgenerateText(T, StringBuilder).)
Protected methodgethash
Typed version of getPointerHash(IPointer). Returns a hash of a cursor state.
(Overrides TextPointerCursorTgethash(T).)
Protected methodgetPointerHash
Returns pointer hash.
(Inherited from TextPointerCursorT.)
Protected methodhide
Hides (clears) this instance.
(Inherited from PointerCursor.)
Public methodHide
Hides this instance.
(Inherited from PointerCursor.)
Public methodInit
Initializes (resets) the cursor.
(Inherited from PointerCursor.)
Public methodSetState
Sets the state of the cursor.
(Inherited from PointerCursor.)
Protected methodshow
Shows this instance.
(Inherited from PointerCursor.)
Protected methodtextIsVisible
Indicates if text should be visible.
(Overrides TextPointerCursorTtextIsVisible.)
Protected methodupdate
This method is called every time when the pointer changes.
(Inherited from PointerCursor.)
Protected methodupdateOnce
This method is called once when the cursor is initialized.
(Overrides TextPointerCursorTupdateOnce(IPointer).)
Public methodUpdatePointer
Updates the pointer. This method is called when the pointer is moved.
(Inherited from PointerCursor.)
Top
Fields
  NameDescription
Public fieldDefaultCursor
Default cursor sub object.
Protected fielddefaultSize
Initial cursor size in pixels.
(Inherited from PointerCursor.)
Protected fieldhash
Last data hash.
(Inherited from PointerCursor.)
Public fieldPressedCursor
Pressed cursor sub object.
Protected fieldrect
Cached RectTransform.
(Inherited from PointerCursor.)
Public fieldShowButtons
Should the value of Buttons be shown on the cursor.
Public fieldShowFlags
Should the value of Flags be shown on screen on the cursor.
(Inherited from TextPointerCursorT.)
Public fieldShowPointerId
Should the value of Id be shown on screen on the cursor.
(Inherited from TextPointerCursorT.)
Protected fieldsize
Cursor size.
(Inherited from PointerCursor.)
Protected fieldstate
Current cursor state.
(Inherited from PointerCursor.)
Protected fieldstateData
CUrrent cursor state data.
(Inherited from PointerCursor.)
Public fieldText
The link to UI.Text component.
(Inherited from TextPointerCursorT.)
Top
See Also