Draggable UI improvements

This commit is contained in:
2025-06-30 14:56:32 -07:00
parent 2d5d4004b4
commit 0c2483f249
3 changed files with 70 additions and 17 deletions

View File

@@ -2,5 +2,5 @@ using UnityEngine;
public class IgnoreRaycast : MonoBehaviour, ICanvasRaycastFilter
{
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) => false;
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) => GetComponent<DraggableUI>() != null && GetComponent<DraggableUI>().canDrag;
}