Default Cursor


http://blogs.unity3d.com/2012/10/22/cursor-api/

changing the cursor also seems to change the cursor visibility?
is there any way tp do this only for platforms that use/show a mouse cursor?
i want to replace the ugly default cursor in win and mac but i do not need/want to show a cursor on android
thanks

Maybe this:

Screen.showCursor = false;

Thanks but then what? how do i know if i should show the cursor or not?

#ifdef UNITY_FLASH || UNITY_WEBPLAYER || UNITY_METRO || UNITY_EDITOR_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_DASHBOARD_WIDGET || UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX

I have to use an if statement like this or something to fix the visibility?

Or maybe a better way?
Or maybe a way to separate the cursor graphic and the cursor visibility so i can deal with one without having to deal with the other?

I tied this but didn’t work on android?

Thanks.

using UnityEngine;
using UnityEngine.EventSystems;
public class HideCursor : MonoBehaviour
{
    void Start()
    {
        if (GetComponent<TouchInputModule>().IsModuleSupported())
            Screen.showCursor = false;
    }
}

It’s a matter of taste, I would try this:

#if !UNITY_STANDALONE_WIN
   #if !UNITY_STANDALONE_OSX
      Screen.showCursor = false;
   #endif
#endif

i cannot hide this ‘player settings’ cursor on my Android device even explicitly with no conditions?

Screen.showCursor = false;

although it does work and hides cursor in editor
i also tried lockCursor
does anyone know how to hide the ‘player settings’ cursor on devices that do not normally show cursor? or on Android at least?
thanks
1974262--127944--Cursor.png

I have a simpler solution, remove the cursor when making a build for Android. You’re Welcome, lol. Sorry if I’m late.