Topic: Add Look At for Camera

HI there,

On the OnlineMapsTileSetControl.cs script you can chose between "Center Point Elevation" and "Max Elevation In Area" as a look at for the Camera. I need to be able to have the camera look at a game object that I am using to adjust the elevation manually in order to look at something hovering over the map/buildings. At the moment I have my Main Camera as a child to another camera that is disabled but used by the aforementioned script for rotation and distance purposes and have a look at script on the Main Camera as a work around.

It would be nice to be able to assign a game object as a third option.

Just a thought. My work around seems to be working fine for now.

Thanks

Re: Add Look At for Camera

Hello.

This behavior is much better implemented by third-party scripts.
You can see the camera rotation logic in OnlineMapsControlBase3D.UpdateCameraPosition, disable "Allow Camera Control", and implement it in your own script.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.