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.

Question How do I determine if a WebGL game is in full screen mode?

Discussion in 'Web' started by Meltdown, Oct 4, 2020.

  1. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,798
    I know we can use unityInstance.SetFullscreen(1) to make the game full screen, and passing 0, to revert this.
    But since the user can also press ESC/Tab out etc, it can leave full screen mode.

    Is there a property on unityInstance to determine if the game is currently running in full screen mode?
     
    tantx likes this.
  2. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    502
    Hey man you're in luck. I just published an asset that can do what you want. Leave a review if you can, will you? :)
     
    SpaceAgeInteractive and Meltdown like this.
  3. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    951
    MousePods, Meltdown and Marks4 like this.