Click or drag to resize

TextPointerCursorT Class

Abstract class for pointer cursors with text.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.Behaviors.CursorsPointerCursor
            TouchScript.Behaviors.CursorsTextPointerCursorT
              TouchScript.Behaviors.CursorsMouseCursor
              TouchScript.Behaviors.CursorsObjectCursor
              TouchScript.Behaviors.CursorsPenCursor
              TouchScript.Behaviors.CursorsTouchCursor

Namespace:  TouchScript.Behaviors.Cursors
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class TextPointerCursor<T> : PointerCursor
where T : IPointer

Type Parameters

T
Pointer type.

The TextPointerCursorT type exposes the following members.

Constructors
  NameDescription
Protected methodTextPointerCursorT
Initializes a new instance of the TextPointerCursorT class
Top
Properties
  NameDescription
Public propertySize
Cursor size in pixels.
(Inherited from PointerCursor.)
Top
Methods
  NameDescription
Protected methodgenerateText
Generates text for pointer.
Protected methodgethash
Typed version of getPointerHash(IPointer). Returns a hash of a cursor state.
Protected methodgetPointerHash
Returns pointer hash.
(Overrides PointerCursorgetPointerHash(IPointer).)
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.
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 PointerCursorupdateOnce(IPointer).)
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.
Public fieldShowPointerId
Should the value of Id be shown on screen 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.
Top
See Also