Phaser API Documentation

  Version: 
scrollUV(x, y)

Description:

Translates the original UV positions 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 Vertex.

Since: 3.60.0
Source: src/geom/mesh/Vertex.js (Line 213)