onSizeChange : Phaser.Signal
This signal is dispatched when the size of the Display canvas changes or the size of the Game changes.
When invoked this is done after the Canvas size/position have been updated.
This signal is only called when a change occurs and a reflow may be required.
For example, if the canvas does not change sizes because of CSS settings (such as min-width)
then this signal will not be triggered.
Use this to handle responsive game layout options.
This is signaled from preUpdate
(or pauseUpdate
) even when the game is paused.
- Source code: core/ScaleManager.js (Line 487)
- To Do:
-
- Formalize the arguments, if any, supplied to this signal.
Please login to continue.