Table of Contents

Class Spine_Animator

Namespace
AO
Assembly
CoreAssembly.dll

Component that displays a spine animation. See Assets.SpineSkeletonAsset to load a spine animation.

public class Spine_Animator : Component
Inheritance
Spine_Animator
Inherited Members
Extension Methods

Fields

OnAnimationEnd

Called when an animation ends

public Action<string> OnAnimationEnd

Field Value

Action<string>

OnAnimationStart

Called when an animation starts

public Action<string> OnAnimationStart

Field Value

Action<string>

OnEvent

Called when an animation event happens

public Action<string> OnEvent

Field Value

Action<string>

Properties

DepthOffset

public float DepthOffset { get; set; }

Property Value

float

DestroyEntityWhenDoneCurrentAnimation

public bool DestroyEntityWhenDoneCurrentAnimation { get; set; }

Property Value

bool

Layer

public int Layer { get; set; }

Property Value

int

MaskInShadow

public bool MaskInShadow { get; set; }

Property Value

bool

SpineInstance

The backing spine instance

public SpineInstance SpineInstance { get; }

Property Value

SpineInstance

TargetViewport

public Viewport TargetViewport { get; set; }

Property Value

Viewport

Methods

GetBonePosition(string)

Get the position of a bone

public Vector2 GetBonePosition(string boneName)

Parameters

boneName string

Returns

Vector2

GetBoneRotation(string)

Get the rotation of a bone

public float GetBoneRotation(string boneName)

Parameters

boneName string

Returns

float

SetCrewchsia(int)

Sets the colour index

public void SetCrewchsia(int colorIndex)

Parameters

colorIndex int

SetToPlayerMaterial(Player)

Sets this Spine_Animator to use the given player's material.

public void SetToPlayerMaterial(Player player)

Parameters

player Player