Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: ORIENTATION_CHANGE
Phaser.Scale.Events.ORIENTATION_CHANGE
ORIENTATION_CHANGE

Description:

The Scale Manager Orientation Change Event.

This event is dispatched whenever the Scale Manager detects an orientation change event from the browser.

Parameters:

name type description
orientation string

The new orientation value. Either Phaser.Scale.Orientation.LANDSCAPE or Phaser.Scale.Orientation.PORTRAIT.

Since: 3.16.1