Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Last active May 27, 2018 12:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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