Page Summary
-
SelectionVisualizeris an interface used to provide visual feedback when aBaseTransformableNodeis selected in Sceneform. -
It offers two main methods:
applySelectionVisualto add a visual indicator when a node is selected, andremoveSelectionVisualto remove the indicator when the node is no longer selected. -
A known subclass,
FootprintSelectionVisualizer, provides a concrete implementation by rendering a footprint beneath the selected node.
| Known Indirect Subclasses |
Interface to visual when a BaseTransformableNode is selected.
Public Methods
| abstract void |
applySelectionVisual(BaseTransformableNode node)
Adds a visual that indicates a
BaseTransformableNode is currently selected. |
| abstract void |
removeSelectionVisual(BaseTransformableNode node)
Removes the visual that was indicating a
BaseTransformableNode is currently selected. |
Public Methods
public abstract void applySelectionVisual (BaseTransformableNode node)
Adds a visual that indicates a BaseTransformableNode is currently selected.
Parameters
| node |
|---|
public abstract void removeSelectionVisual (BaseTransformableNode node)
Removes the visual that was indicating a BaseTransformableNode is currently selected.
Parameters
| node |
|---|