Skip to content

Camera

const Camera: BuiltinComponentDef<CameraData>

Defined in: ecs/component.ts:925

What a viewport draws and from where. One camera per render target; priority breaks the tie and isActive takes one out.

@beta: clearFlags is a bitmask whose C++ enum has no TypeScript spelling, and cullingMask names layers no exported constant identifies — so two of these fields are typed number for want of the vocabulary, not by design.