Takes the given TextureSource and returns the index of it within this Texture. If it's not in this Texture, it returns -1. Unless this Texture has multiple TextureSources, such as with a multi-atlas, this method will always return zero or -1.
name | type | description |
---|---|---|
source | Phaser.Textures.TextureSource |
The TextureSource to check. |
The index of the TextureSource within this Texture, or -1 if not in this Texture.