private bool isBlockingImportantGUI(Vector2 pos, Vector2 size) { Rect r = new Rect(pos.x, pos.y, size.x, size.y); return r.intersectsImportantGUI(); }
private bool isOffScreenOrBlockingImportantGUI(Vector2 pos, Vector2 size) { Rect r = new Rect(pos.x, pos.y, size.x, size.y); if (!r.intersectsImportantGUI()) { r = r.clampToScreen(); return (r.x != pos.x) || (r.y != pos.y); } else { return true; } }