CLASSES
TagsA - Z

SpriteManager

Sprite

Description

class SpriteManager

Constructor

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

Create a new SpriteManager A tutorial about sprites can be found here : https://doc.babylonjs.com/tutorials/Sprites

Parameters

Name Type Description
name string Name of the sprite manager
imgUrl string Link of the image
capacity number The capacity of the sprite manager
cellSize any Size of cells
scene Scene Scene which contain the sprite Manager
optional epsilon number Epsilon

Members

name : string

Name of the sprite manager

sprites : Sprite[]

Sprites contains in the manager

renderingGroupId : number

The rendering group ID

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

Called on dispose

texture : Texture

Methods

intersects(ray, camera, predicate, fastCheck) → PickingInfo

Parameters

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

render() → void

Render this sprite manager

dispose() → void