SlotInfo
Information about a slot being updated during rendering.
This class is passed to slot update handlers and contains all the data needed to customize or override slot rendering. You can modify properties to affect how the slot is drawn.
Usage Example
spine.onUpdateSlotWithName(this, "weapon", function(info) {
// Apply custom transform to weapon slot
info.customTransform = new Transform();
info.customTransform.rotate(Math.PI * 0.25);
// Or disable rendering
info.drawDefault = false;
});
Instance Members
The Spine slot being updated. Contains attachment, color, and bone information.
Global index for this slot name. Use this for efficient slot identification across skeletons.
Optional custom transform to apply to this slot. Set this to override the slot's normal positioning. Defaults to null (no custom transform).
The computed world transform for this slot. Includes bone transforms and parent hierarchy. Read-only - modify customTransform instead.
Controls whether this slot's attachment should be rendered. Set to false to hide the slot while still processing it. Useful for custom rendering or selective visibility.
The rendering depth (z-order) for this slot. Higher values render on top of lower values. Can be modified to change rendering order.