onUnmount method
Called when the owning node leaves a live scene graph.
Implementation
@override
void onUnmount() {
// Guard on attachment, not mount state: Component.unmount clears the
// mounted flag before onUnmount and the render scene is still reachable.
if (isAttached) {
node.internalRenderScene?.removeIrradianceVolumeComponent(this);
}
}