Sceneform-android-sdk: Reopen: How to remove the circle when the 3D object is selected?

Created on 4 Oct 2018  路  6Comments  路  Source: google-ar/sceneform-android-sdk

For some 3D models, when they're selected, There is a gray circle on the bottom. How to hide those circles for sure?

Most helpful comment

Everyone, this's the final answer (In Kotlin):

class BlanckSelectionVisualizer: SelectionVisualizer {
    override fun applySelectionVisual(var1: BaseTransformableNode) { }
    override fun removeSelectionVisual(var1: BaseTransformableNode) { }
}
system.selectionVisualizer = BlanckSelectionVisualizer()

All 6 comments

  1. Call getTransformationSystem on your ArFragment (or acquire it from somewhere)

  2. Call getSelectionVisualizer on the transformation system

  3. Call removeSelectionVisual on the selection visualizer, passing in the node you want.

You can also modify the selection visualizer or write your own.

  1. Call getTransformationSystem on your ArFragment (or acquire it from somewhere)
  2. Call getSelectionVisualizer on the transformation system
  3. 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()
Was this page helpful?
0 / 5 - 0 ratings

Related issues

terezo picture terezo  路  3Comments

LukasStancikas picture LukasStancikas  路  3Comments

chiaolinghong3d picture chiaolinghong3d  路  3Comments

tigran-babajanyan picture tigran-babajanyan  路  3Comments

PaulTVungle picture PaulTVungle  路  3Comments