addBitmapData(key, bitmapData, frameData) → {Phaser.BitmapData}
Add a BitmapData object to the cache.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | The key that this asset will be stored in the cache under. This should be unique within this cache. | ||
bitmapData | Phaser.BitmapData | The BitmapData object to be addded to the cache. | ||
frameData | Phaser.FrameData | null | <optional> | (auto create) | Optional FrameData set associated with the given BitmapData. If not specified (or |
Returns
The BitmapData object to be addded to the cache.
- Source code: loader/Cache.js (Line 437)
Please login to continue.