Hi all,
I’m trying to use a custom mouse cursor and am finding it difficult to have the click point directly in the middle of my chosen image. Ive tried a number of things but cant seem to get it working, any ideas?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseIcon : MonoBehaviour {
public Texture2D cursorEnter;
public Texture2D cursorExit;
void OnMouseEnter () {
Cursor.SetCursor(cursorEnter, new Vector2(10,10), CursorMode.Auto);
}
void OnMouseExit () {
Cursor.SetCursor(cursorExit, new Vector2(10,10), CursorMode.Auto);
}
}
Cheers,