From 14914eedc018566b22d37e891e531afc3ef81b25 Mon Sep 17 00:00:00 2001 From: NoixDeXydre Date: Thu, 14 May 2026 12:17:25 +0200 Subject: [PATCH] Fix SaveManager.SaveGame() LocationHandler error when code stripping is enabled --- .../Data Storage/Data Locations/Save/SaveLocationLocalFile.cs | 2 ++ .../Data Locations/Save/SaveLocationPlayerPrefs.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationLocalFile.cs b/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationLocalFile.cs index ec43ca6..4ac9274 100644 --- a/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationLocalFile.cs +++ b/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationLocalFile.cs @@ -15,12 +15,14 @@ */ using CarterGames.Assets.SaveManager.Helpers; +using UnityEngine.Scripting; namespace CarterGames.Assets.SaveManager { /// /// Handles saving game data to a local file. /// + [Preserve] public sealed class SaveLocationLocalFile : ISaveDataLocation { /* ───────────────────────────────────────────────────────────────────────────────────────────────────────────── diff --git a/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationPlayerPrefs.cs b/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationPlayerPrefs.cs index 326c47d..07392c1 100644 --- a/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationPlayerPrefs.cs +++ b/Code/Runtime/Data Storage/Data Locations/Save/SaveLocationPlayerPrefs.cs @@ -14,11 +14,14 @@ * If not, see . */ +using UnityEngine.Scripting; + namespace CarterGames.Assets.SaveManager { /// /// Handles saving game data to a player prefs. /// + [Preserve] public sealed class SaveLocationPlayerPrefs : ISaveDataLocation { /* ─────────────────────────────────────────────────────────────────────────────────────────────────────────────