PointRectSelector.cs 307 B

12345678910111213
  1. using UnityEngine;
  2. using UnityEditor;
  3. namespace UnityEditor.U2D.Path
  4. {
  5. public class PointRectSelector : RectSelector<Vector3>
  6. {
  7. protected override bool Select(Vector3 element)
  8. {
  9. return guiRect.Contains(HandleUtility.WorldToGUIPoint(element), true);
  10. }
  11. }
  12. }