dacha
    Preparing search index...

    Class Camera

    Makes an actor a camera. The game shows the scene through the current camera.

    Camera

    Hierarchy (View Summary)

    Index
    actor?: Actor

    The actor that has this component. It is undefined until the component is added to an actor.

    current: boolean

    Whether the camera is the current camera. Only one camera can be the current camera.

    windowSizeX: number = 0

    Size of the game window on the x axis, in pixels

    windowSizeY: number = 0

    Size of the game window on the y axis, in pixels

    zoom: number

    Zoom of the camera

    • Returns the component of the same class on the parent actor.

      Returns Component<object> | undefined

      The component, or undefined if the actor has no parent actor or the parent has no such component.