Interface PBUiCanvasInformation

Hierarchy

  • PBUiCanvasInformation

Properties

devicePixelRatio: number

informs the scene about the resolution used for the UI rendering

height: number

informs about the height of the canvas, in virtual pixels. this value does not change when the pixel ratio changes.

interactableArea: undefined | BorderRect

informs the sdk about the interactable area. some implementations may change this area depending on the HUD that is being shown. this value may change at any time by the Renderer to create reactive UIs. as an example, an explorer with the chat UI hidden and with no minimap could have a rect that covers the whole screen. on the contrary, if the chat UI is shown, the rect would be smaller.

width: number

informs about the width of the canvas, in virtual pixels. this value does not change when the pixel ratio changes.