@minecraft/server
    Preparing search index...

    Class CameraBeta

    Contains methods relating to the active camera for the specified player.

    Index

    Properties

    Methods

    Properties

    isValid: boolean

    Returns whether the Camera is valid to access and use. A Camera is considered valid when the owning Player of the Camera is loaded and valid itself.

    Methods

    • Beta

      Returns void

      Clears the active camera for the specified player. Causes the specified players to end any in-progress camera perspectives, including any eased camera motions, and return to their normal perspective.

      This function can't be called in read-only mode.

      This function can throw errors.

    • Beta

      Parameters

      • OptionalfadeCameraOptions: CameraFadeOptions

        Additional options around camera fade operations.

      Returns void

      Begins a camera fade transition. A fade transition is a full-screen color that fades-in, holds, and then fades-out.

      This function can't be called in read-only mode.

      This function can throw errors.