DeformTimeline
Timeline → CurveTimeline → spine.DeformTimeline (Class)
Implements: SlotTimeline
Changes a slot's {@link Slot#getDeform()} to deform a {@link VertexAttachment}.
Static Members
Instance Members
| Returns |
|---|
| Int |
| Returns |
|---|
| Int |
The attachment that will be deformed.
See {@link VertexAttachment#getDeformAttachment()}. | Returns | |---------| | [spine.attachments.VertexAttachment](/api-docs/clay-native/spine/attachments/VertexAttachment/) |
The vertices for each frame.
| Returns |
|---|
| spine.support.utils.FloatArray2D |
Sets the time and vertices for the specified frame.
| Name | Type | Description |
|---|---|---|
frame |
Int | Between 0 and frameCount, inclusive. |
time |
Float | The frame time in seconds. |
vertices |
spine.support.utils.FloatArray | Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights. |
spine
setBezier(bezier: Int, frame: Int, value: Int, time1: Float, value1: Float, cx1: Float, cy1: Float, cx2: Float, cy2: Float, time2: Float, value2: Float): Void| Name | Type | Description |
|---|---|---|
bezier |
Int | |
frame |
Int | |
value |
Int | |
time1 |
Float | |
value1 |
Float | Ignored (0 is used for a deform timeline). |
cx1 |
Float | |
cy1 |
Float | |
cx2 |
Float | |
cy2 |
Float | |
time2 |
Float | |
value2 |
Float | Ignored (1 is used for a deform timeline). |
spine
apply(skeleton: Skeleton, lastTime: Float, time: Float, events: spine.support.utils.Array<Event>, alpha: Float, blend: MixBlend, direction: MixDirection): Void| Name | Type |
|---|---|
skeleton |
Skeleton |
lastTime |
Float |
time |
Float |
events |
spine.support.utils.Array<Event> |
alpha |
Float |
blend |
MixBlend |
direction |
MixDirection |
spine
new(frameCount: Int, bezierCount: Int, slotIndex: Int, attachment: spine.attachments.VertexAttachment): Void| Name | Type |
|---|---|
frameCount |
Int |
bezierCount |
Int |
slotIndex |
Int |
attachment |
spine.attachments.VertexAttachment |
Private Members
Returns the interpolated percentage for the specified time.
| Name | Type | Description |
|---|---|---|
time |
Float | |
frame |
Int | The frame before time. |
| Returns |
|---|
| Float |