PO/Library/PackageCache/com.unity.2d.animation@5.0.7/Editor/SkinningModule/Selection/BoneSelection.cs

22 lines
500 B
C#
Raw Normal View History

2022-01-12 10:06:03 +03:00
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>(); }
}
}
}