Click or drag to resize

CursorManager Class

Pointer visualizer which shows pointer circles with debug text using Unity UI.

The script should be placed on an element with RectTransform or a Canvas. A reference prefab is provided in TouchScript package.

Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.Behaviors.CursorsCursorManager

Namespace:  TouchScript.Behaviors.Cursors
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class CursorManager : MonoBehaviour

The CursorManager type exposes the following members.

Constructors
  NameDescription
Public methodCursorManager
Initializes a new instance of the CursorManager class
Top
Properties
  NameDescription
Public propertyCursorPixelSize
Cursor size in pixels.
Public propertyCursorSize
Gets or sets the size of pointer cursors in cm. This value is only used when UseDPI is set to true.
Public propertyMouseCursor
Prefab to use as mouse cursors template.
Public propertyObjectCursor
Prefab to use as object cursors template.
Public propertyPenCursor
Prefab to use as pen cursors template.
Public propertyTouchCursor
Prefab to use as touch cursors template.
Public propertyUseDPI
Gets or sets whether CursorManager is using DPI to scale pointer cursors.
Top
See Also