Skip to content

Commit

Permalink
Old mat now destroyed before making copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Indigocoder1 committed Dec 24, 2024
1 parent 0186f5e commit 8cbe4cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Nautilus/Utility/MaterialUtils_Subnautica.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ private static void OnCyclopsLoaded(GameObject cyclops)
var holoMat = cyclops.transform.Find("HelmHUD/HelmHUDVisuals/Canvas_LeftHUD/EngineOnUI/EngineOff_Button")
.GetComponent<UnityEngine.UI.Image>().material;

Object.Destroy(HolographicUIMaterial);
HolographicUIMaterial = new Material(holoMat);
_cyclopsLoaded = true;
}
Expand Down

0 comments on commit 8cbe4cc

Please sign in to comment.