unity tech.
단어로 string 을 split
zimamdero
2015. 9. 15. 15:51
string[] separators = new string[] { "Android" };
string[] paths = Application.persistentDataPath.Split(separators, System.StringSplitOptions.None);
string rootPath = paths[0] + "Folder/";
갤 노트 4에서 Application.persistentDataPath 는
/storage/emulated/0/Android/com.preject.Temp.apk
이런 식으로 경로 나옴.
위와 같이 Android로 자르면 path[0] 은 /storage/emulated/0/
sd card 경로가 됨