# How to change game.scale.mode during run time

**URL:** <https://phaser.discourse.group/t/how-to-change-game-scale-mode-during-run-time/11050>\
**Category:** Phaser 3\
**Created:** [January 15, 2022, 9:09pm UTC](https://phaser.discourse.group/t/how-to-change-game-scale-mode-during-run-time/11050 "2022-01-15T21:09:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmakrzem](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/mmakrzem/32/6112_2.png) [@mmakrzem](https://phaser.discourse.group/u/mmakrzem)\
**Post date:** [January 15, 2022, 9:09pm UTC](https://phaser.discourse.group/t/how-to-change-game-scale-mode-during-run-time/11050/1 "2022-01-15T21:09:14Z")

</div>

I setup my game this way:

```javascript
const config : Phaser.Types.Core.GameConfig = {
    type: Phaser.AUTO,
    width: 500,
    height: 700,
    physics: {
      default: 'arcade',
      arcade: {
        gravity: { y: 200 },
        debug: true,
      },
    },
    scene: [GameScene, SettingsScene],
    scale: {
      mode: Phaser.Scale.FIT,
    },
  };
  new Phaser.Game( config );

```

In my SettingsScene I want an option where I can turn the game.scale.mode to Phaser.Scale.None but I can’t figure out a way to do this from within the SettingsScene class.

Is this possible?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 16, 2022, 6:34pm UTC](https://phaser.discourse.group/t/how-to-change-game-scale-mode-during-run-time/11050/2 "2022-01-16T18:34:12Z")

</div>

I’m not sure if it’s supported, but you would do

```javascript
this.scale.scaleMode = Phaser.Scale.NONE;
this.scale.refresh();

```

---

<div class="post-metadata">

**Author:** ![mmakrzem](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/mmakrzem/32/6112_2.png) [@mmakrzem](https://phaser.discourse.group/u/mmakrzem)\
**Post date:** [January 16, 2022, 10:23pm UTC](https://phaser.discourse.group/t/how-to-change-game-scale-mode-during-run-time/11050/3 "2022-01-16T22:23:57Z")

</div>

scale.refresh() did the trick. Thanks.
