Advanced
Optional
antialiasWhether to enable anti-aliasing. This may affect performance.
Optional
clearThe color used to clear the texture before rendering. Can be a hex number, string, or array of numbers.
Optional
frameThe region of the container that should be rendered. If not specified, defaults to the local bounds of the container.
Optional
resolutionThe resolution of the texture being generated. Higher values create sharper textures at the cost of memory.
The container to generate the texture from. This can be any display object like Sprite, Container, or Graphics.
Optional
Advanced
textureAdvanced options for configuring the texture source. Controls texture properties like scale mode and filtering.
Options for generating a texture from a container. Used to create reusable textures from display objects, which can improve performance when the same content needs to be rendered multiple times.
Example