AdvancedOptionalantialiasWhether to enable anti-aliasing. This may affect performance.
OptionalclearThe color used to clear the texture before rendering. Can be a hex number, string, or array of numbers.
OptionalframeThe region of the container that should be rendered. If not specified, defaults to the local bounds of the container.
OptionalresolutionThe 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 AdvancedtextureAdvanced 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