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.
Namespace: TouchScript.Behaviors.Cursors
public class CursorManager : MonoBehaviour
The CursorManager type exposes the following members.
Name | Description | |
---|---|---|
CursorManager | Initializes a new instance of the CursorManager class |
Name | Description | |
---|---|---|
CursorPixelSize |
Cursor size in pixels.
| |
CursorSize |
Gets or sets the size of pointer cursors in cm. This value is only used when UseDPI is set to true.
| |
MouseCursor |
Prefab to use as mouse cursors template.
| |
ObjectCursor |
Prefab to use as object cursors template.
| |
PenCursor |
Prefab to use as pen cursors template.
| |
TouchCursor |
Prefab to use as touch cursors template.
| |
UseDPI |
Gets or sets whether CursorManager is using DPI to scale pointer cursors.
|