CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
347 stars 83 forks source link

Better activation radius gizmo for CesiumSubScene #400

Closed azrogers closed 8 months ago

azrogers commented 8 months ago

Closes #83.

CesiumSubScene currently uses Gizmos.DrawWireSphere to visualize the activation radius of the subscene. This doesn't help very much, since Gizmos.DrawWireSphere really only draws three wire circles representing the sphere's radii, and that's it. The simplest way to do better is to grab the built-in sphere mesh (the one that gets used when you create a sphere using GameObject > 3D Object > Sphere) and draw that in wireframe.