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: Resolution

Current resolution in world pixels of the screen

viewport

Current viewport in css pixels of the screen