unity 获取文件夹里面有多少个png图片
//using System.IO; string filePath= Application.dataPath+ "/新建文件夹"; if (Directory.Exists(filePath)) {//判断这个路径是否存在 DirectoryInfo direction = new DirectoryInfo(filePath); files = direction.GetFiles("*.png", SearchOption.AllDirectories); } Debug.Log(files.Length );
posted on 2020-08-20 11:20 zqiang0803 阅读(720) 评论(0) 编辑 收藏 举报