Phaser API Documentation

  Version: 
setUVs(width, height, u0, v0, u1, v1)

Description:

Directly sets the canvas and WebGL UV data for this frame.

Use this if you need to override the values that are generated automatically when the Frame is created.

Parameters:

name type description
width number

Width of this frame for the Canvas data.

height number

Height of this frame for the Canvas data.

u0 number

UV u0 value.

v0 number

UV v0 value.

u1 number

UV u1 value.

v1 number

UV v1 value.

Returns:
Description:

This Frame object.

Since: 3.50.0
Source: src/textures/Frame.js (Line 613)