Search Unity

Fullscreen toggle not working in Uniti 2018.1

Discussion in 'Scripting' started by Onlyboro, Jun 1, 2018.

  1. Onlyboro

    Onlyboro

    Joined:
    Oct 28, 2017
    Posts:
    4
    Hi, I have a settings menu with a toggle that when you press it changes the fullscreen like so:
    Code (CSharp):
    1. public void SetFullscreen(bool isFullscreen)
    2.     {
    3.         Screen.fullScreen = isFullscreen;
    4.     }
    But when I do the build it doesn´t work at all, I let here a screenshot with my player settings:

    Thanks in advance for the help!