wuxianshengcong/Library/PackageCache/com.unity.2d.animation@9.1.2/Editor/SkinningModule/Selection/BoneSelection.cs
2025-01-02 14:50:41 +08:00

22 lines
500 B
C#

using System;
using UnityEngine;
namespace UnityEditor.U2D.Animation
{
[Serializable]
internal class BoneSelection : SerializableSelection<BoneCache>, IBoneSelection
{
protected override BoneCache GetInvalidElement() { return null; }
public BoneCache root
{
get { return activeElement.FindRoot<BoneCache>(elements); }
}
public BoneCache[] roots
{
get { return elements.FindRoots<BoneCache>(); }
}
}
}