Phaser API Documentation

  Version: 
updateCropUVs(crop, flipX, flipY)

Description:

Takes a crop data object and recalculates the UVs based on the dimensions inside the crop object. Called automatically by setFrame.

Parameters:

name type description
crop object

The crop data object. This is the GameObject._crop property.

flipX boolean

Does the parent Game Object have flipX set?

flipY boolean

Does the parent Game Object have flipY set?

Returns:
Description:

The updated crop data object.

Type:
  • object
Since: 3.11.0
Source: src/textures/Frame.js (Line 595)