From e821d4e65e6a79def0ffb3af22cd4373b51c2c65 Mon Sep 17 00:00:00 2001 From: Savya Bikram Shah Date: Mon, 1 Jun 2026 14:06:28 +0545 Subject: [PATCH] background fixes --- .../Capture/Systems/CaptureService.cs | 13 +++++++++++++ .../Darkmatter/Content/Colorbook UI/.DS_Store | Bin 10244 -> 10244 bytes 2 files changed, 13 insertions(+) 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 8e308e9ca3e1ac88a6736b93814b3bbb1aa4b1b2..3a68e5c6c2d49dfcca49f8692b9f6903de55101d 100644 GIT binary patch delta 25 bcmZn(XbIR*C&p}GV6eGS>@Po*(aZ<{as&uB delta 25 bcmZn(XbIR*C&p}SX0*9c>@Po*(aZ<{a{~xX