holopy3/Assets/Scripts/CursorChanger.cs

22 lines
470 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CursorChanger : MonoBehaviour
{
public Texture2D cursorTexture;
public CursorMode cursorMode = CursorMode.Auto;
public Vector2 hotSpot = Vector2.zero;
public void Start()
{
Cursor.SetCursor(cursorTexture, hotSpot, cursorMode);
}
//public void EndHovering()
//{
// Cursor.SetCursor(null, Vector2.zero, cursorMode);
//}
}