API Referenceatlas
UIObject
Base class for UI elements with screen-space positioning and measured size.
Module: atlas
Base class for UI elements with screen-space positioning and measured size.
Declaration
export abstract class UIObject extends GameObject { ... }Extends: GameObject
Methods
getSize
Returns the current dimensions.
getSize(): Size2d;getScreenPosition
Returns the UI element's screen-space position.
getScreenPosition(): Position2d;setScreenPosition
Sets the UI element's screen-space position.
abstract setScreenPosition(position: Position2d): void;