diff --git a/Assets/CustomTools/CustomPlayerPrefs/Scripts/Utility.cs b/Assets/CustomTools/CustomPlayerPrefs/Scripts/Utility.cs index e2c5b0e..97dbee1 100644 --- a/Assets/CustomTools/CustomPlayerPrefs/Scripts/Utility.cs +++ b/Assets/CustomTools/CustomPlayerPrefs/Scripts/Utility.cs @@ -26,6 +26,8 @@ public static int IndexOf(this IEnumerable collection, Func predi public static async Task SaveToJsonAsync(T objectToSerialize, string fullPath) { + + string jsonString = JsonUtility.ToJson(objectToSerialize, true); using (StreamWriter streamWriter = new StreamWriter(fullPath))