Write telemetry to persistentDataPath
parent
f8725f5728
commit
5d7590f297
|
@ -21,7 +21,7 @@ public class SimMonitor : MonoBehaviour
|
||||||
{
|
{
|
||||||
string timestamp = DateTime.Now.ToString("yyyyMMdd_HHmmss");
|
string timestamp = DateTime.Now.ToString("yyyyMMdd_HHmmss");
|
||||||
string fileName = $"sim_telemetry_{timestamp}.csv";
|
string fileName = $"sim_telemetry_{timestamp}.csv";
|
||||||
string directory = "Telemetry/Logs/";
|
string directory = Application.persistentDataPath + "/Telemetry/Logs/";
|
||||||
Directory.CreateDirectory(directory);
|
Directory.CreateDirectory(directory);
|
||||||
string path = Path.Combine(directory, fileName);
|
string path = Path.Combine(directory, fileName);
|
||||||
writer = new StreamWriter(path, false);
|
writer = new StreamWriter(path, false);
|
||||||
|
|
Loading…
Reference in New Issue