From 628ce74097143d7c10f077503742fd0cb259060a Mon Sep 17 00:00:00 2001 From: voropserg Date: Fri, 27 Jan 2023 16:53:27 +0200 Subject: [PATCH] asset override for mobile devices --- Runtime/services/TotemDebug.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Runtime/services/TotemDebug.cs b/Runtime/services/TotemDebug.cs index 87f11fb..3bec9ff 100644 --- a/Runtime/services/TotemDebug.cs +++ b/Runtime/services/TotemDebug.cs @@ -32,6 +32,9 @@ public class TotemDebug : MonoBehaviour void Awake() { string pathToAssetOverride = Application.dataPath + "/" + ServicesEnv.AssetsOverrideFilePath; +#if UNITY_ANDROID || UNITY_IOS + pathToAssetOverride = Application.persistentDataPath + "/" + ServicesEnv.AssetsOverrideFilePath; +#endif if (File.Exists(pathToAssetOverride)) { string overrideJson = File.ReadAllText(pathToAssetOverride);