Hello, I am curious as to why I can’t figure this one out. I have one scene acting as a main menu. I need the cursor to show on start, this here says it would work…
void Start()
{
Cursor.visible = true;
}
That doesn’t work, so I tried something like this instead.
public bool cursorOn;
void Start()
{
cursorOn = true;
}
void Update()
{
if(cursorOn == true)
{
ShowCursor();
}
else if(cursorOn == false)
{
HideCursor();
}
}
void ShowCursor
{
Cursor.visible = true;
Cursor.lockState = CursorLockMode.None;
}
void HideCursor()
{
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
}
Nothing I have tried after that has worked, so I am coming here to hopefully find it out. The only stuff I could find online was exactly what I tried, but it didn’t work. It used to be so much easier Unity, why did you need to change this…?