Search Unity

Inconsistent mouse cursor animation on windowed game load (Windows - Unity 5.5.0)

Discussion in 'Editor & General Support' started by Sitalk, Dec 11, 2016.

  1. Sitalk

    Sitalk

    Joined:
    Nov 12, 2013
    Posts:
    26
    This is an odd behavior that appeared some time after Unity 5.2.
    On windowed games when running the game from the executable if the mouse cursor is positioned where the window will open the cursor will trigger its loading animation until the first scene is loaded.

    Here's a short video I just recorded about this: https://my.mixtape.moe/aapscg.webm

    Bug report case 860330
     
  2. BrownieGames

    BrownieGames

    Joined:
    Jan 30, 2017
    Posts:
    5
    You can fix it by making a script with this code:
    Code (CSharp):
    1.     void Start(){
    2.         Cursor.SetCursor(null, Vector2.zero, CursorMode.ForceSoftware);
    3.     }
     
  3. Sitalk

    Sitalk

    Joined:
    Nov 12, 2013
    Posts:
    26
    Are you sure? I just tried this in Unity 5.6 and 5.4 with no luck.
    Besides this happens immediately on executing the build and during the splash screen, when the first scene loads of course I get the cursor I set for the game.
     
  4. BrownieGames

    BrownieGames

    Joined:
    Jan 30, 2017
    Posts:
    5
    It seemed to work for me in Unity 5.6.1
     
  5. BrownieGames

    BrownieGames

    Joined:
    Jan 30, 2017
    Posts:
    5
    And this bug also occurs in fullscreen games