hoveredElement property
The element that is currently hovered over in the GeometryEditor, or null if nothing is hovered over.
When the current GeometryEditor.tool is a ReticleTool the hovered element is the element under the reticle. When the current GeometryEditor.tool is not a ReticleTool the hovered element is the element under the cursor or pointer. The value of GeometryEditor.hoveredElement changes, raising the GeometryEditor.onHoveredElementChanged event, when:
- the mouse or reticle moves onto or off of an element
- the hovered element is deleted
- an element has stopped moving - for example, by being placed or after being moved by dragging.
It may also change when:
- undoing or redoing edits using GeometryEditor.undo or GeometryEditor.redo
- stopping the geometry editor using GeometryEditor.stop
- changing the GeometryEditor.tool