Phaser API Documentation

  Version: 
batchSprite(sprite, frame, camera, [parentTransformMatrix])

Description:

Takes a Sprite Game Object, or any object that extends it, and draws it to the current context.

Parameters:

name type arguments description
sprite Phaser.GameObjects.GameObject

The texture based Game Object to draw.

frame Phaser.Textures.Frame

The frame to draw, doesn't have to be that owned by the Game Object.

camera Phaser.Cameras.Scene2D.Camera

The Camera to use for the rendering transform.

parentTransformMatrix Phaser.GameObjects.Components.TransformMatrix <optional>

The transform matrix of the parent container, if set.

Since: 3.12.0