3using System.Collections;
11 Rect screenRect =
new Rect(0,0,0,0);
18 screenRect.width = Screen.width;
19 screenRect.height = Screen.height;
22 public void OnDrag(PointerEventData eventData)
26 Debug.LogWarning(
"Window parent is null, cannot drag a null window.");
30 if(screenRect.Contains(eventData.position))
RectTransform windowParent
The root gameobject of this window.
void OnBeginDrag(PointerEventData eventData)
void OnDrag(PointerEventData eventData)