CLASSES
TagsA - Z

SpriteManager

Sprite

Description

class SpriteManager

Constructor

new SpriteManager(name, imgUrl, capacity, cellSize, scene, epsilon, samplingMode)

Parameters

Name Type Description
name string
imgUrl string
capacity number
cellSize any
scene Scene
optional epsilon number

Members

name : string

sprites : Sprite[]

renderingGroupId : number

layerMask : number

fogEnabled : boolean

isPickable : boolean

cellWidth : number

cellHeight : number

onDisposeObservable : Observable<SpriteManager>

An event triggered when the manager is disposed.

@type {BABYLON.Observable}

onDispose : () => void

texture : Texture

Methods

intersects(ray, camera, predicate, fastCheck) PickingInfo

Parameters

Name Type Description
ray Ray
camera Camera
optional predicate (sprite: Sprite) => boolean

render() void

dispose() void