Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Screen.showCursor = true does not work when scene is loaded from another scene

Discussion in 'Scripting' started by steb92, May 13, 2015.

  1. steb92

    steb92

    Joined:
    Nov 7, 2014
    Posts:
    29
    I have a GameOver.unity scene being loaded when the player's health reaches 0. When this scene loads up, I have an empty gameobject with a script setting the Screen.showCursor = true. However, when I run the game via .EXE, no cursor is shown when the scene loads.
     
  2. DoomSamurai

    DoomSamurai

    Joined:
    Oct 10, 2012
    Posts:
    159
    If you are using Unity 5, this might be the issue :
     
  3. steb92

    steb92

    Joined:
    Nov 7, 2014
    Posts:
    29
    No, I'm using 4.6.