Phaser API Documentation

  Version: 
setTextureSource(textureSource)

Description:

Activates the Texture Source and assigns it the next available texture unit. If none are available, it will flush the current pipeline first.

Parameters:

name type description
textureSource Phaser.Textures.TextureSource

The Texture Source to be assigned the texture unit.

Returns:
Description:

The texture unit that was assigned to the Texture Source.

Type:
  • number
Examples:
Since: 3.50.0