Function: createImageNameSprite()
createImageNameSprite(
imageName,imageCache,renderLayer,shaderStore,cameraEntity):Promise<Sprite>
Defined in: rendering/utilities/create-image-name-sprite.ts:17
Creates a sprite using the provided image name and render layer.
Parameters
imageName
string
The image name to use for the sprite.
imageCache
The image cache used to get the image.
renderLayer
The render layer to which the sprite will be added.
shaderStore
The shader store to use for the sprite's material.
cameraEntity
The camera entity to which the sprite will be rendered.
Returns
Promise<Sprite>
The created sprite.