Click or drag to resize

TouchCursor Class

Cursor for touch pointers.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.Behaviors.CursorsPointerCursor
            TouchScript.Behaviors.CursorsTextPointerCursorTouchPointer
              TouchScript.Behaviors.CursorsTouchCursor

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

The TouchCursor type exposes the following members.

Constructors
  NameDescription
Public methodTouchCursor
Initializes a new instance of the TouchCursor 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.
(Inherited from TextPointerCursorT.)
Public methodUpdatePointer
Updates the pointer. This method is called when the pointer is moved.
(Inherited from PointerCursor.)
Top
Fields
  NameDescription
Protected fielddefaultSize
Initial cursor size in pixels.
(Inherited from PointerCursor.)
Protected fieldhash
Last data hash.
(Inherited from PointerCursor.)
Protected fieldrect
Cached RectTransform.
(Inherited from PointerCursor.)
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.)
Public fieldShowPressure
Should the value of Pressure be shown on the cursor.
Public fieldShowRotation
Should the value of Rotation be shown on the cursor.
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