This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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