ISpriteManager

Defines the minimum interface to fullfil in order to be a sprite manager.

Hierarchy

Implemented by

Index

Properties

isPickable

Find examples in Playground
isPickable: boolean

Gets or sets a boolean indicating if the mesh can be picked (by scene.pick for instance or through actions). Default is true

layerMask

Find examples in Playground
layerMask: number

Restricts the camera to viewing objects with the same layerMask. A camera with a layerMask of 1 will render spriteManager.layerMask & camera.layerMask!== 0

renderingGroupId

Find examples in Playground
renderingGroupId: number

Specifies the rendering group id for this mesh (0 by default)

see

http://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered#rendering-groups

sprites

Find examples in Playground
sprites: Array<Sprite>

Defines the list of sprites managed by the manager.

Methods

dispose

Find examples in Playground
  • dispose(): void

intersects

Find examples in Playground
  • Tests the intersection of a sprite with a specific ray.

    Parameters

    • ray: Ray

      The ray we are sending to test the collision

    • camera: Camera

      The camera space we are sending rays in

    • Optional predicate: function

      A predicate allowing excluding sprites from the list of object to test

        • Parameters

          Returns boolean

    • Optional fastCheck: boolean

      Is the hit test done in a OOBB or AOBB fashion the faster, the less precise

    Returns Nullable<PickingInfo>

    picking info or null.

render

Find examples in Playground
  • render(): void
  • Renders the list of sprites on screen.

    Returns void

Generated using TypeDoc