Layer:setDimensions

Edit

Sets the width and height of the layer. This is the size of the Layer's plane in meters, not not the resolution of the layer's texture in pixels.

Layer:setDimensions(width, height)

Arguments

NameTypeDescription
widthnumber The width of the layer, in meters.
heightnumber The height of the layer, in meters.

Returns

Nothing

Notes

When a layer is created, its width and height are 1 meter.

See also