Function addSprite2D
-
Parameters
- layer: Sprite2DLayer
Sprite layer to add the sprite to.
- props: Sprite2DProps
Initial sprite properties.
Returns Sprite2DHandle
A handle that stays valid as sprites are added and removed.
- layer: Sprite2DLayer
Sprite layer to add the sprite to.
Initial sprite properties.
A handle that stays valid as sprites are added and removed.
Adds a sprite to the layer and returns a stable handle to it.