diff --git a/Assets/Darkmatter/Code/Services/Capture/Systems/CaptureService.cs b/Assets/Darkmatter/Code/Services/Capture/Systems/CaptureService.cs index 6f99564..e6f2466 100644 --- a/Assets/Darkmatter/Code/Services/Capture/Systems/CaptureService.cs +++ b/Assets/Darkmatter/Code/Services/Capture/Systems/CaptureService.cs @@ -48,6 +48,7 @@ namespace Darkmatter.Services.Capture disabledCanvases = DisableOtherRootCanvases(paperCanvas); disabledGraphics = HideNonPaperGraphics(paperRT); + HidePaperOwnGraphics(paperRT, disabledGraphics); cam.clearFlags = CameraClearFlags.SolidColor; cam.backgroundColor = new Color(0f, 0f, 0f, 0f); @@ -157,6 +158,18 @@ namespace Darkmatter.Services.Capture return disabled; } + private static void HidePaperOwnGraphics(Transform paper, List disabled) + { + if (paper == null) return; + var graphics = paper.GetComponents(); + foreach (var g in graphics) + { + if (g == null || !g.enabled) continue; + g.enabled = false; + disabled.Add(g); + } + } + private static Rect ComputeCropRect(GameObject target, int screenW, int screenH) { if (target == null || target.transform is not RectTransform rt) diff --git a/Assets/Darkmatter/Content/Colorbook UI/.DS_Store b/Assets/Darkmatter/Content/Colorbook UI/.DS_Store index 8e308e9..3a68e5c 100644 Binary files a/Assets/Darkmatter/Content/Colorbook UI/.DS_Store and b/Assets/Darkmatter/Content/Colorbook UI/.DS_Store differ