Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional halfVerticalSize: number
    • Optional rect: Rect
    • Optional backgroundColor: Color
    • Optional clearFlags: CameraClearFlags
    • Optional depth: number
    • Optional cullingMode: CameraCullingMode
    • Optional cullingMask: number[]

    Returns Camera2D

Properties

backgroundColor

backgroundColor: Color

Specifies the background color this camera should render before rendering the scene when clearFlags is set to SolidColor.

clearFlags

clearFlags: CameraClearFlags

Specifies how to clear this camera's viewport before rendering.

cullingMask

cullingMask: number[]

A component mask that specifies which components to consider when culling entities according to the cullingMode.

cullingMode

cullingMode: CameraCullingMode

Specifies which CameraCullingMode option this camera uses to interpret its cullingMask.

depth

depth: number

The camera's render order relative to other cameras. Cameras with lower values render first. Cameras with higher values render overtop of cameras with lower vlaues.

halfVerticalSize

halfVerticalSize: number

Specifies half of the vertical size in world units. The horizontal size is calculated from the output display size and aspect ratio. The Transform component's world position defines the camera origin's location, size, and rotation.

rect

rect: Rect

Specifies the coordinates of the viewport rectangle in the output frame that this camera should render to.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static backgroundColor

backgroundColor: ColorComponentFieldDesc

Static cid

cid: number

Static depth

Static halfVerticalSize

halfVerticalSize: ComponentFieldDesc

Static rect

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

  • Parameters

    Returns Camera2D

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc