ScreenSizeListener

Class in Zigurous.UI

Declaration

public sealed class ScreenSizeListener : MonoBehaviour

Description

Listens for changes in the screen size.

Static Properties

InstanceThe current instance of the class. The instance will be created if it does not already exist.
HasInstanceChecks if the singleton has been initialized and an instance is available to use.

Properties

resizedA callback invoked when the screen size changes.
sizeThe current size of the screen (Read only).
widthThe current width of the screen (Read only).
heightThe current height of the screen (Read only).