Back to Browse

Enable and Disable Cesium User Input in Unity

792 views
Feb 29, 2024
2:33

In the previous tutorial, we implemented 3D photorealistic tiles in Unity using Cesium and Google Maps APIs. We also implemented an address search user interface. However, I don’t like that the 3D scene keeps orbiting every time I move the mouse, even when I do not intend to rotate the scene. To resolve this issue, I can enable the user input that controls the Cesium camera only when a certain key is pressed, the Shift key, for example. In other cases, when the user is not holding the shift key, the camera will not move around when I move the mouse.

Download

0 formats

No download links available.

Enable and Disable Cesium User Input in Unity | NatokHD