diff --git a/Source/MASMonitor.cs b/Source/MASMonitor.cs
index 5fb47f6d..369a2493 100644
--- a/Source/MASMonitor.cs
+++ b/Source/MASMonitor.cs
@@ -344,6 +344,30 @@ public void OnDestroy()
}
}
+ ///
+ /// Disable the screen camera when the IVA becomes inactive (e.g. on EVA or vessel switch).
+ /// Without this, the camera renders to the main screen with its opaque-black SolidColor
+ /// clear, wiping the skybox and scaled-space bodies every frame.
+ ///
+ public override void OnBecomeInactive()
+ {
+ if (screenCamera != null)
+ {
+ screenCamera.enabled = false;
+ }
+ }
+
+ ///
+ /// Re-enable the screen camera when the IVA becomes active again.
+ ///
+ public override void OnBecomeActive()
+ {
+ if (screenCamera != null)
+ {
+ screenCamera.enabled = true;
+ }
+ }
+
///
/// Just in case we lose context.
///