private void SetSettings() { RectTransform rt = gameHUD.GetComponent(typeof(RectTransform)) as RectTransform; selectObjects.SetForbiddenPosition(rt.offsetMax); }