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)
Please login to continue.