Phaser API Documentation

  Version: 
scrollUV(x, y)

Description:

Translates the original UV positions of each vertex by the given amounts.

The original properties Vertex.u and Vertex.v remain unchanged, only the translated properties Vertex.tu and Vertex.tv, as used in rendering, are updated.

Parameters:

name type description
x number

The amount to scroll the UV u coordinate by.

y number

The amount to scroll the UV v coordinate by.

Returns:
Description:

This Face instance.

Since: 3.60.0
Source: src/geom/mesh/Face.js (Line 408)