The Size class represents the dimensions of a rectangle or other shape in 2D space.

Size 类表示2D空间中矩形或其他形状的尺寸。

构造函数

访问器

构造函数

访问器

  • get fullScreen(): Size

    返回 Size

    Returns a Size instance with both width and height set to -1, indicating full screen.

    Gets the screen size of the global scene.

    获取全局场景的屏幕尺寸。