IEditablePathController.cs 973 B

123456789101112131415161718192021222324
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.Experimental.Rendering.Universal.Path2D
  4. {
  5. internal interface IEditablePathController
  6. {
  7. IEditablePath editablePath { get; set; }
  8. IEditablePath closestEditablePath { get; }
  9. ISnapping<Vector3> snapping { get; set; }
  10. bool enableSnapping { get; set; }
  11. void RegisterUndo(string name);
  12. void ClearSelection();
  13. void SelectPoint(int index, bool select);
  14. void CreatePoint(int index, Vector3 position);
  15. void RemoveSelectedPoints();
  16. void MoveSelectedPoints(Vector3 delta);
  17. void MoveEdge(int index, Vector3 delta);
  18. void SetLeftTangent(int index, Vector3 position, bool setToLinear, bool mirror, Vector3 cachedRightTangent);
  19. void SetRightTangent(int index, Vector3 position, bool setToLinear, bool mirror, Vector3 cachedLeftTangent);
  20. void ClearClosestPath();
  21. void AddClosestPath(float distance);
  22. }
  23. }