frameName : string
Gets or sets the current frame name of the texture being used to render this Game Object.
To change the frame set frameName
to the name of the new frame in the texture atlas you wish this Game Object to use,
for example: player.frameName = "idle"
.
If the frame name given doesn't exist it will revert to the first frame found in the texture and throw a console warning.
If you are using a sprite sheet then you should use the frame
property instead.
If you wish to fully replace the texture being used see loadTexture
.
- Inherited From
- Source code: gameobjects/components/LoadTexture.js (Line 279)
Please login to continue.