- Home /
Question by
FaNaSeK · Jan 21, 2015 at 08:00 PM ·
javascriptcursoroffset
Cursor offset
Hi i have a problem ... when i change the cursor texture to my own texture the thing that detects the mouse position is somewhere above the cursor ... even when i put it back to default with this line of code:
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
it is still somewhere above the cursor. Is there a way how to set the right offset? if it is the offset.
Comment
The 2nd parameter is the offset from the top left corner. not sure why it won't reset tho.
Answer by cdrandin · Jan 22, 2015 at 10:20 AM
One issue I have has with the Cursor class is that it doesn't update accurately in the editor. Try building it and determine if it works for sure outside of the editor.
Your answer
