Default Cursor was working but not anymore. What might I have missed?

Hey all!

I was playing with Default Cursors in PlayerSettings, and it had worked beautifully for a while when I exported to both web and standalone player, but suddenly stopped.

What I’ve checked so far:

  • PlayerSettings → Default Cursor is still set to the texture
  • The cursor texture is a 32x32 PNG imported as a cursor
  • When in the Unity IDE, the cursor changes to my custom cursor when I mouse around the Game window
  • I tried using a different graphic, still doesn’t work

Here’s a video of the hardware cursors working in the IDE’s game window:
http://screencast.com/t/7sflxUF9NT

And here’s a video of the hardware cursor only working when I mouse-over the sphere in the standalone player (PC Build):
http://screencast.com/t/KGNY2pBt0XcC

Is there something apparent I might have missed? If not, what troubleshooting steps can I take?

Thanks for any help!

It still works in editor mode?

Yup. The first video shows it working in editor mode

1 Answer

1

for me it only works in build version when use the set function.

public Texture2D cursorTexture;
public CursorMode cursorMode = CursorMode.Auto;
private Vector2 cursorSpot = Vector2.zero;

void Start ()
{
Cursor.SetCursor(cursorTexture, cursorSpot, cursorMode);
}

But this doesn't address the default cursor right? I'm using SetCursor when mousing over the sphere, and that one works.

i am getting the same problem cursor works in editor but not in [webplayer][1] after build.. :( [1]: http://unity3diy.blogspot.com/