Interface ISpriteManager
Hierarchy
- IDisposable
- ISpriteManager
Implemented by
Index
Properties
cell HeightSearch playground for cellHeight
Defines the default height of a cell in the spritesheet
cell WidthSearch playground for cellWidth
Defines the default width of a cell in the spritesheet
is PickableSearch playground for isPickable
Gets or sets a boolean indicating if the mesh can be picked (by scene.pick for instance or through actions). Default is true
layer MaskSearch playground for layerMask
Restricts the camera to viewing objects with the same layerMask. A camera with a layerMask of 1 will render spriteManager.layerMask & camera.layerMask!== 0
nameSearch playground for name
Gets manager's name
rendering Group IdSearch playground for renderingGroupId
Specifies the rendering group id for this mesh (0 by default)
sceneSearch playground for scene
Gets the hosting scene
spritesSearch playground for sprites
Defines the list of sprites managed by the manager.
textureSearch playground for texture
Gets or sets the spritesheet texture
Methods
disposeSearch playground for dispose
Releases all held resources
Returns void
intersectsSearch playground for intersects
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: ((sprite: Sprite) => boolean)
A predicate allowing excluding sprites from the list of object to test
Parameters
sprite: Sprite
Returns boolean
Optional fastCheck: boolean
defines if the first intersection will be used (and not the closest)
Returns Nullable<PickingInfo>
picking info or null.
multi IntersectsSearch playground for multiIntersects
Intersects the sprites with a ray
Parameters
ray: Ray
defines the ray to intersect with
camera: Camera
defines the current active camera
Optional predicate: ((sprite: Sprite) => boolean)
defines a predicate used to select candidate sprites
Parameters
sprite: Sprite
Returns boolean
Returns Nullable<PickingInfo[]>
null if no hit or a PickingInfo array
rebuildSearch playground for rebuild
Rebuilds the manager (after a context lost, for eg)
Returns void
renderSearch playground for render
Renders the list of sprites on screen.
Returns void
Defines the minimum interface to fulfill in order to be a sprite manager.