gre*_*Bow 1 c# list unity-game-engine
用于构建文件列表的等效代码是什么?我正在创建这样的数组.
arctopithecusImages = Directory.GetFiles(@"/Users/kenmarold/Screenshots/ARCTOPITHECUS/", "*.jpg");
Run Code Online (Sandbox Code Playgroud)
我试着用它来构建我的List,但是它没有用.这样做的正确方法是什么?
List<FilePath> arctopithecusImageList = new List<FilePath>();
arctopithecusImageList.Add(Directory.GetFiles(@"/Users/kenmarold/Screenshots/ARCTOPITHECUS/", "*.jpg"));
Run Code Online (Sandbox Code Playgroud)