Class Cursor
Inherited Members
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class Cursor
Properties
lockState
Declaration
public static CursorLockMode lockState { get; set; }
Property Value
| Type | Description |
|---|---|
| CursorLockMode |
visible
Declaration
public static bool visible { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
SetCursor(Texture2D, Vector2, CursorMode)
Declaration
public static void SetCursor(Texture2D texture, Vector2 hotspot, CursorMode cursorMode)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | texture | |
| Vector2 | hotspot | |
| CursorMode | cursorMode |