Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to define an additional view for the engine

see

https://doc.babylonjs.com/divingDeeper/scene/multiCanvas

Hierarchy

  • EngineView

Index

Constructors

Properties

camera?: Camera

Defines an optional camera used to render the view (will use active camera else)

clearBeforeCopy?: boolean

Indicates if the destination view canvas should be cleared before copying the parent canvas. Can help if the scene clear color has alpha < 1

customResize?: (canvas: HTMLCanvasElement) => void

Type declaration

    • (canvas: HTMLCanvasElement): void
    • Defines a custom function to handle canvas size changes. (the canvas to render into is provided to the callback)

      Parameters

      • canvas: HTMLCanvasElement

      Returns void

enabled: boolean

Indicates if the view is enabled (true by default)

target: HTMLCanvasElement

Defines the canvas where to render the view

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme