- Home /
Full Screen Toggle will not work.
This Full screen toggle will not work. I have looked a lot of places and i see no reason why this wouldn't work. The method is called, i know because of the debug.log, But the game always stays in full screen and doesn't change. The UI toggle has the method assigned as a dynamic bool. Here is the code that matters.
public void SetFullscreen(bool isFullscreen){
Debug.Log(isFullscreen);
Screen.fullScreen = isFullscreen;
}
Please help
Answer by Happeloy · May 14, 2018 at 07:57 AM
Are you perhaps trying this in the editor? The application can only be fullscreen if you build it.
No, this is in the built version of the application.
Your answer
![](https://koobas.hobune.stream/wayback/20220612162617im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
when we double click any button this is error occurring, where is the error 2 Answers
SetBool and SetTrigger not work on UI button click in unity 0 Answers
Scaling RectTransform to fit screen size in code 1 Answer
Search child under parent in self 1 Answer
error CS0029: Cannot implicitly convert type 'string' to 'int'... I EVEN ADDED .ToString(); 1 Answer