extension-spine

Namespace: spine Language: Lua Type: Extension

Functions and constants for interacting with Spine models

API

spine.play_anim

Type: FUNCTION Plays the specified animation on a Spine model. A [ref:spine_animation_done] message is sent to the callback (or message handler). Any spine events will also be handled in the same way. [icon:attention] The callback is not called (or message sent) if the animation is cancelled with [ref:spine.cancel]. The callback is called (or message sent) only for animations that play with the following playback modes * go.PLAYBACK_ONCE_FORWARD * go.PLAYBACK_ONCE_BACKWARD * go.PLAYBACK_ONCE_PINGPONG

Parameters

spine.cancel

Type: FUNCTION Cancels all running animations on a specified spine model component

Parameters

spine.get_go

Type: FUNCTION Returns the id of the game object that corresponds to a specified skeleton bone.

Parameters

spine.set_skin

Type: FUNCTION Sets the spine skin on a spine model.

Parameters

spine.add_skin

Type: FUNCTION Adds one spine skin on a spine model to another on the same model.

Parameters

spine.copy_skin

Type: FUNCTION Copies one spine skin on a spine model to another on the same model.

Parameters

spine.clear_skin

Type: FUNCTION Clear all attachments and constraints from a skin on a spine model

Parameters

spine.set_attachment

Type: FUNCTION Set the attachment of a slot on a spine model.

Parameters

spine.set_slot_color

Type: FUNCTION Set the color a slot will tint its attachments on a spine model.

Parameters

spine.reset_constant

Type: FUNCTION Resets a shader constant for a spine model component. (Previously set with go.set())

Parameters

spine.reset_ik_target

Type: FUNCTION reset the IK constraint target position to default of a spinemodel.

Parameters

spine.set_ik_target_position

Type: FUNCTION set the target position of an IK constraint object.

Parameters

spine.set_ik_target

Type: FUNCTION set the IK constraint object target position to follow position.

Parameters

spine.physics_translate

Type: FUNCTION Apply a physics-based translation to the Spine model.

Parameters

spine.physics_rotate

Type: FUNCTION Apply a physics-based rotation to the Spine model.

Parameters