protected override void StartDrag() { if (CustomInputModule.IsPointerOverUI()) { return; } base.StartDrag(); }
public void ShowWindowUnderMouse() { if (CustomInputModule.IsPointerOverUI()) { var hovered = CustomInputModule.GetHoveredGameObject(); if (hovered) { var window = hovered.GetComponentInParent <Window>(); if (window) { Windows.MoveToTop(window.transform); } } } }