I’m trying to get an invisible custom rotation gizmo on an object that is sized to encompass the object’s bounding sphere.
Here it’s working on the utility layer but I’m unsure how to dynamically update the gizmo proxy mesh diameter to match the object’s bounding sphere in screen space:
I tried to place gizmo in main scene but it didn’t work:
Results in error:
When setting a custom mesh on a gizmo, the custom meshes scene must be the same as the gizmos (eg. gizmo.gizmoLayer.utilityLayerScene)
Having the gizmo in the main scene rather than an overlay would be preferable in my use case as I’m likely to have other clickable 3D objects between the rotatable object and the camera/utility layer i.e. I don’t want the rotation gizmo proxy to block other clickable objects in the main scene.
Related to my last post: User rotatable object TS class?