Layer:getTexture

Edit

Returns the texture for the layer. This is the texture that will be pasted onto the layer.

texture = Layer:getTexture()

Arguments

None

Returns

NameTypeDescription
textureTexture The layer's texture.

Notes

This function may return a different Texture object each frame. The return value should not be cached.

The texture will have the rgba8 format, with sample and render usage flags.

See also