Answer the question
In order to leave comments, you need to log in
How to set cursor size in unity?
How to set the size of the texture that is superimposed on the cursor in the unit?
Like this - the cursor size changes (I understand when hovering over the button), but the size of the texture itself remains unchanged. And I don't really want to change the size in another editor
float xspot = tex.width;
float yspot = tex.height;
Vector2 hotSpot = new Vector2(xspot, yspot);
Debug.Log(hotSpot);
Cursor.SetCursor(tex, new Vector2(xspot, yspot), CursorMode.ForceSoftware);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question