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
OnAnimationStart
Called when an animation starts
public Action<string> OnAnimationStart
Field Value
OnEvent
Called when an animation event happens
public Action<string> OnEvent
Field Value
Properties
DepthOffset
public float DepthOffset { get; set; }
Property Value
DestroyEntityWhenDoneCurrentAnimation
public bool DestroyEntityWhenDoneCurrentAnimation { get; set; }
Property Value
Layer
public int Layer { get; set; }
Property Value
MaskInShadow
public bool MaskInShadow { get; set; }
Property Value
SpineInstance
The backing spine instance
public SpineInstance SpineInstance { get; }
Property Value
TargetViewport
public Viewport TargetViewport { get; set; }
Property Value
Methods
GetBonePosition(string)
Get the position of a bone
public Vector2 GetBonePosition(string boneName)
Parameters
boneName
string
Returns
GetBoneRotation(string)
Get the rotation of a bone
public float GetBoneRotation(string boneName)
Parameters
boneName
string
Returns
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