Draggable UI improvements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user