using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Cursor : MonoBehaviour
{
public Texture2D cursorArrow;
// Start is called before the first frame update
void Start()
{
//Cursor.visible = false;
Cursor.SetCursor(cursorArrow, Vector2.zero, CursorMode.ForceSoftware);
}
}
I’m attempting to change the cursor to a custom cursor programmatically and Unity 2019.47f1 states the cursor does not have the property visible (which is nonsense) and similarly won’t let me change the cursor using the above method, which worked flawlessly for the video editor back in April 2019.