public void ZoomMap(bool increase) { _currZoom = (increase) ? _currZoom * 2 : _currZoom / 2; if (_currZoom > _maxZoom) { _currZoom = _maxZoom; _zoomInButton.interactable = false; return; } else { _zoomInButton.interactable = true; } if (_currZoom < _minZoom) { _currZoom = _minZoom; _zoomOutButton.interactable = false; return; } else { _zoomOutButton.interactable = true; } float newsize = 4096 * _currZoom; Vector2 size = new Vector2(newsize, newsize); //_scrollViewContent.GetComponent<RectTransform>().sizeDelta = size; _worldMapController.SetZoom(_currZoom); _worldMapController.SetNewSize(size); _worldMapController.ScrollToPosition(MainGameController.instance.player.getCurrentLocationLatLon()); _worldMapController.CreateLocationPointers(false); AddMapLocationPointers(); }