SlotInfo

ceramic.SlotInfo (Class)

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

spine
slot: spine.Slot

The Spine slot being updated. Contains attachment, color, and bone information.


spine
globalSlotIndex: Int

Global index for this slot name. Use this for efficient slot identification across skeletons.


spine
customTransform: Transform

Optional custom transform to apply to this slot. Set this to override the slot's normal positioning. Defaults to null (no custom transform).


spine
transform: Transform

The computed world transform for this slot. Includes bone transforms and parent hierarchy. Read-only - modify customTransform instead.


spine
drawDefault: Bool

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.


spine
depth: Float

The rendering depth (z-order) for this slot. Higher values render on top of lower values. Can be modified to change rendering order.


spine
new(): Void