getFrame(key, cache) → {Phaser.Frame}
Get a single frame by key. You'd only do this to get the default Frame created for a non-atlas/spritesheet image.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | Asset key of the frame data to retrieve from the Cache. | ||
cache | integer | <optional> | Phaser.Cache.IMAGE | The cache to search for the item in. |
Returns
The frame data.
- Source code: loader/Cache.js (Line 1442)
Please login to continue.