- Home /
Question by
ItsKhanny · Apr 01, 2015 at 08:56 AM ·
c#cursorvisibility
How to use the cursor.visible
I am using Unity 5 and I need to convert some old work. I got this so far in C#
using UnityEngine;
using System.Collections;
public class Cursorhide : MonoBehaviour {
Cursor.visible = false;
}
Comment
Best Answer
Answer by PvTGreg · Apr 01, 2015 at 09:08 AM
inside the class Cursorhide add this
void Start ()
{
Screen.showCursor = false;
}