private void reposition() { if (_inputPanel == null) { return; } _panelRect = _inputPanel.GetComponent <RectTransform>(); Vector2 cam = PlanetariumCamera.Camera.WorldToScreenPoint(_buttonRect.position); cam.x -= (Screen.width / 2); cam.y -= (Screen.height / 2); cam.x -= 275; cam.y -= 50; _panelRect.position = cam; clampToScreen(_panelRect); }