onUnmount method
Called when the owning node leaves a live scene graph.
Implementation
@override
void onUnmount() {
// Guard on attachment, not mount state (mirrors MeshComponent): the
// render scene is still reachable during teardown after the mounted flag
// is cleared.
if (isAttached) {
node.internalRenderScene?.removeSpotLight(this);
}
}