holopy3/Assets/Scripts/CursorChanger.cs
2020-12-10 15:25:12 +01:00

21 lines
470 B
C#

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);
//}
}