2021-04-01 13:50发布
public void Fun() {
var path = Application.dataPath + "/streamingAssets";
if (Directory.Exists (path)) {
DirectoryInfo direction = new DirectoryInfo (path);
FileInfo[] files = direction.GetFiles ("*", SearchOption.AllDirectories);
for (int i = 0; i < files>
if (files[i].Name.EndsWith (".meta")) {
continue;
}
Debug.Log ("Name : " + files[i].Name);
Debug.Log ("FullName : " + files[i].FullName);
Debug.Log ("DirectoryName : " + files[i].DirectoryName);
最多设置5个标签!
public void Fun() {
var path = Application.dataPath + "/streamingAssets";
if (Directory.Exists (path)) {
DirectoryInfo direction = new DirectoryInfo (path);
FileInfo[] files = direction.GetFiles ("*", SearchOption.AllDirectories);
for (int i = 0; i < files>
if (files[i].Name.EndsWith (".meta")) {
continue;
}
Debug.Log ("Name : " + files[i].Name);
Debug.Log ("FullName : " + files[i].FullName);
Debug.Log ("DirectoryName : " + files[i].DirectoryName);
}
}
}
一周热门 更多>