Layer:getDimensions

Edit

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

width, height = Layer:getDimensions()

Arguments

None

Returns

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

Notes

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

See also