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>

OnEventExt

public Action<string, int, float, string> OnEventExt

Field Value

Action<string, int, float, string>

Properties

DepthOffset

public float DepthOffset { get; set; }

Property Value

float

DestroyEntityWhenDoneCurrentAnimation

public bool DestroyEntityWhenDoneCurrentAnimation { get; set; }

Property Value

bool

InitialAnimation

public string InitialAnimation { get; set; }

Property Value

string

InitialCrewchsiaColor

public CrewchsiaColor InitialCrewchsiaColor { get; set; }

Property Value

CrewchsiaColor

Layer

public int Layer { get; set; }

Property Value

int

LoopInitialAnimation

public bool LoopInitialAnimation { get; set; }

Property Value

bool

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

Tint

public Vector4 Tint { get; set; }

Property Value

Vector4

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(CrewchsiaColor)

Sets the colour index

public void SetCrewchsia(CrewchsiaColor color)

Parameters

color CrewchsiaColor

SetCrewchsia(int)

Sets the colour index

[Obsolete("Use SetCrewchsia(CrewchsiaColor color). This overload will be removed in proto 40.", false)]
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