CLASSES
TagsA - Z

Layer

Description

class Layer

Constructor

new Layer(name, imgUrl, scene, isBackground, color)

Parameters

Name Type Description
name string
imgUrl string
scene Scene
optional isBackground boolean

Members

name : string

texture : Nullable<Texture>

isBackground : boolean

color : Color4

scale : Vector2

offset : Vector2

alphaBlendingMode : number

alphaTest : boolean

layerMask : number

onDisposeObservable : Observable<Layer>

An event triggered when the layer is disposed.

@type {BABYLON.Observable}

onDispose : () => void

onBeforeRenderObservable : Observable<Layer>

An event triggered before rendering the scene

@type {BABYLON.Observable}

onBeforeRender : () => void

onAfterRenderObservable : Observable<Layer>

An event triggered after rendering the scene

@type {BABYLON.Observable}

onAfterRender : () => void

Methods

render() void

dispose() void