Phaser API Documentation

  Version: 
updateQuadUVs(offset, u1, v1, u2, v2)

Description:

Internally updates the UV coordinates across all vertices of the given quad offset, based on the frame size.

You should not typically need to call this method directly, but it is left public should an extended class require it.

Parameters:

name type description
offset number

The offset in the vertices array of the quad to update.

u1 number

The top-left UV coordinate.

v1 number

The top-left UV coordinate.

u2 number

The bottom-right UV coordinate.

v2 number

The bottom-right UV coordinate.

Since: 3.60.0