Represents a change in RGBA color for a slot in a spine animation.

表示骨骼动画中一个插槽的RGBA颜色变化。

实现

构造函数

属性

endFrame: number

The end frame of this Change.

变化的结束帧。

sizeMap: Map<string, TAttamentPos>

Map storing the attachment positions for the slot.

存储插槽附件位置的映射。

slotId: number

The ID of the slot affected by this color change.

受此颜色变化影响的插槽ID。

startFrame: number

The start frame of this Change.

变化的起始帧。

方法

  • 参数

    • vb: VBCreator

      The VBCreator to update.

    • slots: Slot[]

      Array of spine slots.

    返回 boolean

    True if the update is successful, false otherwise.

    Updates the vertex buffer with new RGBA values.

    使用新的RGBA值更新顶点缓冲区。