- Home /
Load all binary files from asset folder
I am using
string path="*******"
FileStream fs = new FileStream(path, FileMode.Create);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(levelEditor.currentName);
for saving levels
and now there is folder with binary files (in assets) test1.bin ,test2.bin,asd,bin ................... how to access them??
Answer by DawidNorasDev · Jun 21, 2018 at 01:54 PM
System.IO.Directory.GetFiles(string path)
https://msdn.microsoft.com/en-us/library/system.io.directory.getfiles(v=vs.110).aspx
than you can filter all files by extension and use the ones you want
EDIT:
related response:
https://answers.unity.com/questions/24060/can-assetdatabaseloadallassetsatpath-load-all-asse.html
Your answer
Follow this Question
Related Questions
Low FPS in android game if using MK glow free asset 0 Answers
Scriptable Object not saving changes to a list. 0 Answers
Why Are My Project Assets Constantly Re-Importing? 2 Answers
I keep losing my assets 0 Answers
Cannot download large assetbundle with WWW.LoadFromCacheOrDownload on old iOS device 1 Answer