うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-03-06から1日間の記事一覧

【C#】System.IO 操作系処理 (Path, Directory, StreamReader) + AssetDatabase

System.IO.Path var basePath = "/Users/hatch/git/Unity/Blog/Assets/Script/SampleMonoBehaviour.cs"; // 環境毎のファイルパスの区切りに変換 var path = basePath.Replace('/', System.IO.Path.DirectorySeparatorChar); // ファイル名 System.IO.Path.G…