getBitmapData(key) → {Phaser.BitmapData}
Gets a BitmapData object from the cache.
The object is looked-up based on the key given.
Note: If the object cannot be found a console.warn
message is displayed.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key of the asset to retrieve from the cache. |
Returns
The requested BitmapData object if found, or null if not.
- Source code: loader/Cache.js (Line 1283)
Please login to continue.