For some 3D models, when they're selected, There is a gray circle on the bottom. How to hide those circles for sure?
Call getTransformationSystem on your ArFragment (or acquire it from somewhere)
Call getSelectionVisualizer on the transformation system
Call removeSelectionVisual on the selection visualizer, passing in the node you want.
You can also modify the selection visualizer or write your own.
- Call getTransformationSystem on your ArFragment (or acquire it from somewhere)
- Call getSelectionVisualizer on the transformation system
- Call removeSelectionVisual on the selection visualizer, passing in the node you want.
You can also modify the selection visualizer or write your own.
Thanks! Really Helpful. Consider to publish a more detailed documentation of Sceneform?
After following your instructions, the circle did disappear. However, when I use the pinch gesture, the circle shows up again.
@CranberryYam Implement your custom SelectionVisualize, override applySelectionVisual and removeSelectionVisual and leave it blank.
@CranberryYam Implement your custom SelectionVisualize, override applySelectionVisual and removeSelectionVisual and leave it blank.
It works, Thanks!
Everyone, this's the final answer (In Kotlin):
class BlanckSelectionVisualizer: SelectionVisualizer {
override fun applySelectionVisual(var1: BaseTransformableNode) { }
override fun removeSelectionVisual(var1: BaseTransformableNode) { }
}
system.selectionVisualizer = BlanckSelectionVisualizer()
Most helpful comment
Everyone, this's the final answer (In Kotlin):