Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EngineView

Class used to define an additional view for the engine

see

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

Hierarchy

  • EngineView

Index

Properties

Optional cameraSearch playground for camera

camera: Camera

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

Optional clearBeforeCopySearch playground for clearBeforeCopy

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

Optional customResizeSearch playground for customResize

customResize: (canvas: HTMLCanvasElement) => void

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

Type declaration

enabledSearch playground for enabled

enabled: boolean

Indicates if the view is enabled (true by default)

targetSearch playground for target

Defines the canvas where to render the view

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method