BitmapData#add()

add(object) → {Phaser.BitmapData}

Updates the given objects so that they use this BitmapData as their texture.
This will replace any texture they will currently have set.

Parameters
Name Type Description
object Phaser.Sprite | Array.<Phaser.Sprite> | Phaser.Image | Array.<Phaser.Image>

Either a single Sprite/Image or an Array of Sprites/Images.

Returns

This BitmapData object for method chaining.

Source code: gameobjects/BitmapData.js (Line 393)
doc_phaser
2017-02-14 10:36:30
Comments
Leave a Comment

Please login to continue.