AutoMovie API
    Preparing search index...

    Function createViewerCameraState

    • Transfer detached, auto-updating Perspective/Orthographic cameras through their public native lens/transform API, including film and view offsets. Parented, manual-matrix and custom-projection cameras are explicitly refused: another owner must transfer those relationships rather than guess them. All unknown state is validated before the original camera is mutated.

      Parameters

      • camera: Camera

      Returns { capture: () => IViewerCameraStateSnapshot; restore: (state: unknown) => void }