Interface ITexturePackerOptions
colnum?: number;
customFillColor?: string;
disposeSources?: boolean;
fillBlanks?: boolean;
frameSize?: number;
layout?: number;
map?: string[];
paddingColor?: Color3 | Color4;
paddingMode?: number;
paddingRatio?: number;
updateInputMeshes?: boolean;
uvsIn?: string;
uvsOut?: string;
}
Properties
Optionalcolnum
number of columns if using custom column count layout(2). This defaults to 4.
Optionalcustom Fill Color
string value representing the context fill style color. Defaults to 'black'.
Optionaldispose Sources
boolean flag to dispose all the source textures. Defaults to true.
Optionalfill Blanks
Fills the blank cells in a set to the customFillColor. Defaults to true.
Optionalframe Size
Width and Height Value of each Frame in the TexturePacker Sets
Optionallayout
number representing the layout style. Defaults to LAYOUT_STRIP
Optionalmap
Custom targets for the channels of a texture packer. Default is all the channels of the Standard Material
Optionalpadding Color
If in SUBUV_COLOR padding mode what color to use.
Optionalpadding Mode
Number that declares the fill method for the padding gutter.
Optionalpadding Ratio
Ratio of the value to add padding wise to each cell. Defaults to 0.0115
Optionalupdate Input Meshes
flag to update the input meshes to the new packed texture after compilation. Defaults to true.
Optionaluvs In
the UV input targets, as a single value for all meshes. Defaults to VertexBuffer.UVKind
Optionaluvs Out
the UV output targets, as a single value for all meshes. Defaults to VertexBuffer.UVKind
Defines the basic options interface of a TexturePacker