How to change the game size


How can I change the game size / gameSize? I’m trying to set the game size to window’s size on resize event.
I tried to dig in to the game object to change the width and height but i guess those are just read only.



but is there a way to directly change the game size?
I’m in the middle of a project and i have already implemented my own scale manager, the only problem with it is that if you start the game with small window size and then increase the windows size, the game size will not increase.