How to change the mouse cursor?
I have an image that i want to change to my mouse cursor, this image looks like a camera focus(aim), how can i do that?
Answer by Jessespike · Aug 21, 2015 at 08:14 PM
Edit -> Project Settings -> Player
Place your cursor image into the Default Cursor texture field.
Answer by Kurdiez · Mar 28, 2017 at 01:41 PM
Here is what I did to change mouse cursors dynamically.
https://www.youtube.com/watch?v=u7KmO-awg1w∈dex=12&list=PL19hPatg1wQYUedqVzd2wYeggZBvqKPSm
Hey, I would like to watch your video but it is unavailable. :(
Sorry about that... I updated the link to the one that works.
Answer by codemaker2015 · Jul 01, 2021 at 12:09 PM
The default cursor settings in the player settings worked in the editor but it did not show up in a build. Also limiting the texture size to 32x32. I resolved this issue by using Cursor.SetCursor method in a script to change the cursor.
[SerializeField] Texture2D cursor;
void Start() {
Cursor.SetCursor(cursor, Vector3.zero, CursorMode.ForceSoftware);
}