TilemapLayer#setScale()

setScale(xScale, yScale)

This method will set the scale of the tilemap as well as update the underlying block data of this layer.

Parameters
Name Type Argument Default Description
xScale number <optional>
1

The scale factor along the X-plane

yScale number <optional>

The scale factor along the Y-plane

Source code: tilemap/TilemapLayer.js (Line 712)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.