IEditablePath.cs 827 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace UnityEditor.Experimental.Rendering.Universal.Path2D
  4. {
  5. internal interface IEditablePath : ISelectable<Vector3>
  6. {
  7. ShapeType shapeType { get; set; }
  8. IUndoObject undoObject { get; set; }
  9. ISelection<int> selection { get; }
  10. Matrix4x4 localToWorldMatrix { get; set; }
  11. Vector3 forward { get; set; }
  12. Vector3 up { get; set; }
  13. Vector3 right { get; set; }
  14. bool isOpenEnded { get; set; }
  15. int pointCount { get; }
  16. ControlPoint GetPoint(int index);
  17. void SetPoint(int index, ControlPoint controlPoint);
  18. void AddPoint(ControlPoint controlPoint);
  19. void InsertPoint(int index, ControlPoint controlPoint);
  20. void RemovePoint(int index);
  21. void Clear();
  22. }
  23. }