N
N
nano_e_t_42021-03-28 22:53:08
Unity
nano_e_t_4, 2021-03-28 22:53:08

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);


ps
the same when I try to change this size in default settings

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question