BoneSelection.cs 500 B

123456789101112131415161718192021
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.U2D.Animation
  4. {
  5. [Serializable]
  6. internal class BoneSelection : SerializableSelection<BoneCache>, IBoneSelection
  7. {
  8. protected override BoneCache GetInvalidElement() { return null; }
  9. public BoneCache root
  10. {
  11. get { return activeElement.FindRoot<BoneCache>(elements); }
  12. }
  13. public BoneCache[] roots
  14. {
  15. get { return elements.FindRoots<BoneCache>(); }
  16. }
  17. }
  18. }