Open Cj-bc opened 4 years ago
C# provides methods to treat files/directories on Windows, but not for other OS. searching for a while, I noticed I should make these by myself.
pwd
By making Process. for details, here's Microsoft C# document for Process
Process
stdout
JSON
Because it's easier to have structured data format, and easy to make from sh. And because Unity supports json serialize/desirialize
ソンナコトナイヨ System.FileSystemInfo でmacは取得できたよ GNU/Linux環境は知らないよ(ビルドしたのちにダメだったらまた考えるよ)(そもそもQuestとかに持ってくことにしたので今あんま関係ない気がするよ)
System.FileSystemInfo
C# provides methods to treat files/directories on Windows, but not for other OS. searching for a while, I noticed I should make these by myself.
what script should do
pwd
how to execute this from C
By making
Process
. for details, here's Microsoft C# document forProcess
working flow
stdout
stdout
on C# sideWhy do we use
JSON
to pass dataBecause it's easier to have structured data format, and easy to make from sh. And because Unity supports json serialize/desirialize