Skip to main content

ScreenResizeEvent

Fires when the screen resizes, useful if you have logic that needs to be aware of resolution/viewport constraints

Index

Properties

resolution

resolution: ScreenDimension

Current resolution in world pixels of the screen

viewport

viewport: ScreenDimension

Current viewport in css pixels of the screen