Phaser API Documentation

  Version: 
setIsSpriteTexture(value)

Description:

If you are planning on using this Render Texture as a base texture for Sprite Game Objects, then you should call this method with a value of true before drawing anything to it, otherwise you will get inverted frames in WebGL.

Parameters:

name type description
value boolean

Is this Render Target being used as a Sprite Texture, or not?

Returns:
Description:

This Game Object instance.

Since: 3.60.0