using UnityEngine;
public class MyCursor : MonoBehaviour
{
[SerializeField] Texture2D cursorTexture;
Vector2 cursorHotSpot;
void Start()
{
cursorHotSpot = new Vector2(cursorTexture.width / 2, cursorTexture.height / 2);
Cursor.SetCursor(cursorTexture, cursorHotSpot, CursorMode.Auto);
}
}