• Public
  • Public/Protected
  • All

Interface ITexturePackerOptions

Defines the basic options interface of a TexturePacker


  • ITexturePackerOptions



Optional colnumSearch playground for colnum

colnum: number

number of columns if using custom column count layout(2). This defaults to 4.

Optional customFillColorSearch playground for customFillColor

customFillColor: string

string value representing the context fill style color. Defaults to 'black'.

Optional disposeSourcesSearch playground for disposeSources

disposeSources: boolean

boolean flag to dispose all the source textures. Defaults to true.

Optional fillBlanksSearch playground for fillBlanks

fillBlanks: boolean

Fills the blank cells in a set to the customFillColor. Defaults to true.

Optional frameSizeSearch playground for frameSize

frameSize: number

Width and Height Value of each Frame in the TexturePacker Sets

Optional layoutSearch playground for layout

layout: number

number representing the layout style. Defaults to LAYOUT_STRIP

Optional mapSearch playground for map

map: string[]

Custom targets for the channels of a texture packer. Default is all the channels of the Standard Material

Optional paddingColorSearch playground for paddingColor

paddingColor: Color3 | Color4

If in SUBUV_COLOR padding mode what color to use.

Optional paddingModeSearch playground for paddingMode

paddingMode: number

Number that declares the fill method for the padding gutter.

Optional paddingRatioSearch playground for paddingRatio

paddingRatio: number

Ratio of the value to add padding wise to each cell. Defaults to 0.0115

Optional updateInputMeshesSearch playground for updateInputMeshes

updateInputMeshes: boolean

flag to update the input meshes to the new packed texture after compilation. Defaults to true.

Optional uvsInSearch playground for uvsIn

uvsIn: string

the UV input targets, as a single value for all meshes. Defaults to VertexBuffer.UVKind

Optional uvsOutSearch playground for uvsOut

uvsOut: string

the UV output targets, as a single value for all meshes. Defaults to VertexBuffer.UVKind


  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method