Topic: Best Camera Distance for Full Screen Map
When using OnlineMapsTileSetControl on a RawImage that is layouted to full screen and using the AdjustToScreen component at least the TileSet.SizeInScene is automatically set. However how positioning the MapCamera is still to be done manually. I use the code
_MapCamera.transform.position = new Vector3(
_TileSet.sizeInScene.x / -2,
mapCameraDistance,
_TileSet.sizeInScene.y / 2 );
This centers the camera as desired but I don't have a way of calculating the Y value (distance of the camera over the RenderTexture) so that there is
a) no black area
b) the as few area as possibile overlaps the screen
Is there a method to get this distance?