setFrame(frame)
Sets the texture frame the Game Object uses for rendering. This is primarily an internal method used by loadTexture, but is exposed for the use of plugins and custom classes.
Parameters
Name Type Description frame Phaser.Frame The Frame to be used by the texture.
Inherited From Phaser.Component.LoadTexture#setFrame Source code: gameobjects/components/LoadTexture.js (Line 155)