From 8cbe4cc485f920dabf9617953446c8619ed1631c Mon Sep 17 00:00:00 2001 From: Indigocoder1 Date: Tue, 24 Dec 2024 15:45:09 -0800 Subject: [PATCH] Old mat now destroyed before making copy --- Nautilus/Utility/MaterialUtils_Subnautica.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Nautilus/Utility/MaterialUtils_Subnautica.cs b/Nautilus/Utility/MaterialUtils_Subnautica.cs index a39bba9e..c1bc7d46 100644 --- a/Nautilus/Utility/MaterialUtils_Subnautica.cs +++ b/Nautilus/Utility/MaterialUtils_Subnautica.cs @@ -184,6 +184,7 @@ private static void OnCyclopsLoaded(GameObject cyclops) var holoMat = cyclops.transform.Find("HelmHUD/HelmHUDVisuals/Canvas_LeftHUD/EngineOnUI/EngineOff_Button") .GetComponent().material; + Object.Destroy(HolographicUIMaterial); HolographicUIMaterial = new Material(holoMat); _cyclopsLoaded = true; }