From 5d7590f2977d306c88d8e952ae23ae57c231eae0 Mon Sep 17 00:00:00 2001 From: Daniel Lovell Date: Wed, 25 Sep 2024 19:37:03 -0700 Subject: [PATCH] Write telemetry to persistentDataPath --- Assets/Scripts/Monitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Monitor.cs b/Assets/Scripts/Monitor.cs index 2e0fecc..1bb7c18 100644 --- a/Assets/Scripts/Monitor.cs +++ b/Assets/Scripts/Monitor.cs @@ -21,7 +21,7 @@ public class SimMonitor : MonoBehaviour { string timestamp = DateTime.Now.ToString("yyyyMMdd_HHmmss"); string fileName = $"sim_telemetry_{timestamp}.csv"; - string directory = "Telemetry/Logs/"; + string directory = Application.persistentDataPath + "/Telemetry/Logs/"; Directory.CreateDirectory(directory); string path = Path.Combine(directory, fileName); writer = new StreamWriter(path, false);