Phaser API Documentation

  Version: 
setUVs(uA, vA, uB, vB, uC, vC, uD, vD)

Description:

Set the UV values for the 6 vertices that make up the quad used by the shaders in the Utility Pipeline.

Be sure to call resetUVs once you have finished manipulating the UV coordinates.

Parameters:

name type description
uA number

The u value of vertex A.

vA number

The v value of vertex A.

uB number

The u value of vertex B.

vB number

The v value of vertex B.

uC number

The u value of vertex C.

vC number

The v value of vertex C.

uD number

The u value of vertex D.

vD number

The v value of vertex D.

Examples: