Interface: TextureOptions<TextureSourceType>
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:42
The options that can be passed to a new Texture
Standard
Type Parameters
TextureSourceType
TextureSourceType extends TextureSource = TextureSource
Properties
defaultAnchor?
> optional defaultAnchor?: object
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:54
Default anchor point used for sprite placement / rotation
x
> x: number
y
> y: number
defaultBorders?
> optional defaultBorders?: TextureBorders
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:59
Default borders used for 9-slice scaling NineSlicePlane
dynamic?
> optional dynamic?: boolean
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:72
Set 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().
frame?
> optional frame?: Rectangle
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:48
The rectangle frame of the texture to show
label?
> optional label?: string
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:46
optional label, for debugging
orig?
> optional orig?: Rectangle
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:50
The area of original texture
rotate?
> optional rotate?: number
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:61
indicates how the texture was rotated by texture packer. See groupD8
source?
> optional source?: TextureSourceType
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:44
the underlying texture data that this texture will use
trim?
> optional trim?: Rectangle
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:52
Trimmed rectangle of original texture