中文
Appearance
Directory.Exists(path)
Directory
判断指定的目录是否存在。
string
boolean
//创建目录 Directory.Create("Assets/newPath"); //判断当前目录是否存在 let result = Directory.Exists("Assets/newPath"); if (result) { Debug.Log("存在当前目录"); }else{ Debug.Log("当前目录不存在"); }