Phaser 3 current texture

Hi, i need to catch the current texture of my player, so i have this player that can have 3 different textures (3 different images loaded), and when it play i need to know if the current texture is image1 , or image2, or image3, i need to do this thing

if (player.currentTexture() == ‘image1’)

Get texture key, frame name

var textureKey = gameObject.texture.key;
var frameName = gameObject.frame.name;
1 Like