|
Hi, I'm developing my main menu for my game and I want a custom cursor for this. Is there anyway I could do that?
(comments are locked)
|
|
Here a script --- And now is use Event.current.mousePosition--- As I said, don't use Input.mousePosition in OnGUI, use Event.current.mousePosition. Then you don't have to convert coords.
Jul 18 '11 at 04:59 AM
Eric5h5
Thank you!
Jul 18 '11 at 11:34 AM
ZeKurt
Or you could use the framework: http://edrivenunity.com/cursors
Jul 11 '12 at 04:33 PM
dkozar
(comments are locked)
|

This might be a bit ghetto, but I would just use GUI.DrawTexture() at Input.mousePosition and pass your cursor image into GUI.DrawTexture().
Simple but effective.
http://unity3d.com/support/documentation/ScriptReference/GUI.DrawTexture.html
http://unity3d.com/support/documentation/ScriptReference/Input-mousePosition.html
@SilverTabby: Use Event.current.mousePosition in OnGUI, not Input.mousePosition. Otherwise you get screen coords instead of GUI coords.