Interface: TextureOptions

TextureOptions

The options that can be passed to a new Texture

Properties:
Name Type Description
defaultAnchor {
   x: number,
   y: number
}

Default anchor point used for sprite placement / rotation

defaultBorders TextureBorders

Default borders used for 9-slice scaling NineSlicePlane

dynamic boolean

set to true if you plan on modifying the uvs of this texture - can affect performance with high numbers of sprites

frame Rectangle

The rectangle frame of the texture to show

label string

optional label, for debugging

orig Rectangle

The area of original texture

rotate number

indicates how the texture was rotated by texture packer. See groupD8

source TextureSource

the underlying texture data that this texture will use

trim Rectangle

Trimmed rectangle of original texture

Members

defaultAnchor {
   x: number,
   y: number
}

Default anchor point used for sprite placement / rotation

defaultBorders TextureBorders

Default borders used for 9-slice scaling NineSlicePlane

dynamic boolean

set to true if you plan on modifying the uvs of this texture - can affect performance with high numbers of sprites

frame Rectangle

The rectangle frame of the texture to show

label string

optional label, for debugging

orig Rectangle

The area of original texture

rotate number

indicates how the texture was rotated by texture packer. See groupD8

source TextureSource

the underlying texture data that this texture will use

trim Rectangle

Trimmed rectangle of original texture