CurveSelection.cs 722 B

1234567891011121314151617181920212223242526
  1. namespace net.shutosg.UnityEditor
  2. {
  3. public class CurveSelection : UnityEditorWrapperBase
  4. {
  5. public enum SelectionType
  6. {
  7. Key = 0,
  8. InTangent = 1,
  9. OutTangent = 2,
  10. Count = 3,
  11. }
  12. public int CurveId { get; }
  13. public int Key { get; }
  14. public bool SemiSelected { get; }
  15. public SelectionType Type { get; }
  16. public CurveSelection(object original) : base(original)
  17. {
  18. CurveId = GetPublicField<int>("curveID");
  19. Key = GetPublicField<int>("key");
  20. SemiSelected = GetPublicField<bool>("semiSelected");
  21. Type = GetPublicField<SelectionType>("type");
  22. }
  23. }
  24. }