Cosmos Journeyer API Documentation - v1.10.1
    Preparing search index...

    Interface View

    A view is a super set of a scene. In order to prevent interactions between post-processes and the GUI, we actually need to use multiple scenes (layers), hence the concept of a view that is composed of multiple scenes.

    interface View {
        attachControl(): void;
        detachControl(): void;
        getMainScene(): Scene;
        render(): void;
    }

    Implemented by

    Index

    Methods

    • Attach user input to the view to allow the player to interact with it

      Returns void

    • Remove user input to ensure the player does not interact with the view when another view is displayed

      Returns void

    • Returns the bottom layer scene of the view. This is useful for taking a screenshot of the view for example as we can only use one camera at a time.

      Returns Scene

    • Renders the view. It is composed of multiple scene layers: a main scene (bottom layer) and other scenes to handle the UI for example.

      Returns void