Write telemetry to persistentDataPath

more-targets
Daniel Lovell 2024-09-25 19:37:03 -07:00
parent f8725f5728
commit 5d7590f297
1 changed files with 1 additions and 1 deletions

View File

@ -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);