Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*alomost copied from http://blog.narumium.net/2016/12/09/unityで画像をandroid本体に保存する/*/
string path = "";
string pointcloudDataPath;
using ( jcE nvironment = new AndroidJavaClass ("android.os.Environment"))
using (AndroidJavaObject joExDir = jcEnvironment.CallStatic<AndroidJavaObject> ("getExternalStorageDirectory")) {
path = joExDir.Call<string>("toString"); // /storage/sdcard/0
pointcloudDataPath = path + "/pointcloud"; // /storage/sdcard/0/pointcloud
//フォルダがなければ作成
if (!Directory.Exists(pointcloudDataPath)) Directory.CreateDirectory(pointcloudDataPath);
/**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment