Optional
defaultDefault anchor point used for sprite placement / rotation
Optional
defaultDefault borders used for 9-slice scaling NineSlicePlane
Optional
dynamicSet to true if you plan on modifying this texture's frame, UVs, or swapping its source at runtime. This is false by default as it improves performance. Generally, it's recommended to create new textures and swap those rather than modifying an existing texture's properties unless you are working with a dynamic frames. Not setting this to true when modifying the texture can lead to visual artifacts.
If this is false and you modify the texture, you can manually update the sprite's texture by calling
sprite.onViewUpdate()
.
Optional
frameThe rectangle frame of the texture to show
Optional
labeloptional label, for debugging
Optional
origThe area of original texture
Optional
rotateindicates how the texture was rotated by texture packer. See groupD8
Optional
sourcethe underlying texture data that this texture will use
Optional
trimTrimmed rectangle of original texture
The options that can be passed to a new Texture