- Home /
Canvas not resizing when app is changed to fullscreen
I have a canvas that is set to Screen Space - Camera and Scale With Screen Size and it works fine for when the app is in Windowed mode. But when i make it full screen using Screen.fullScreen = true
, the canvas stays at the same aspect ratio it was when it was windowed. How can I fix it?
Answer by Unitycreator212 · Oct 29, 2020 at 02:37 PM
On your canvas under canvas scaling. You can select your canvas scaling mode. You have to set it to scale with screen size. Depending on whether it's a vertical or horizontal game. You can adjust the slider. This affects how much each direction is scaled.
As I mentioned in the question, i have already done this. It works fine in windowed mode but when I change the state of the app to fullscreen the aspect ratio doesnt change.
What im looking for is a method to "refresh" the canvas.
Your answer
![](https://koobas.hobune.stream/wayback/20220613014809im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
trouble when rendering canvas on android 1 Answer
Fullscreen mode 0 Answers
Built game only works properly full screen 0 Answers