Singularity/Library/PackageCache/com.unity.2d.animation@7.0.10/Runtime/SkeletonAsset.cs
2024-05-06 11:45:45 -07:00

34 lines
863 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityEngine.U2D.Animation
{
/// <summary>
/// Asset representing character's Skeleton.
/// </summary>
public class SkeletonAsset : ScriptableObject
{
[SerializeField] private SpriteBone[] m_SpriteBones;
/// <summary>
/// Allows to get Skeleton bones.
/// </summary>
/// <returns>Skeleton's SpriteBone array.</returns>
public SpriteBone[] GetSpriteBones()
{
return m_SpriteBones;
}
/// <summary>
/// Allows to set new Skeleton bones.
/// </summary>
/// <param name="spriteBones">New SpriteBone array.</param>
public void SetSpriteBones(SpriteBone[] spriteBones)
{
m_SpriteBones = spriteBones;
}
}
}