ScreenSizeListener
Class in Zigurous.UI
Declaration
public sealed class ScreenSizeListener : MonoBehaviourDescription
Listens for changes in the screen size.
Static Properties
| Instance | The current instance of the class. The instance will be created if it does not already exist. |
| HasInstance | Checks if the singleton has been initialized and an instance is available to use. |
Properties
| resized | A callback invoked when the screen size changes. |
| size | The current size of the screen (Read only). |
| width | The current width of the screen (Read only). |
| height | The current height of the screen (Read only). |