- Home /
Question by
Gilead7 · Apr 02, 2020 at 05:12 PM ·
listresources.loadbinary
Use Resources.Load for a binary file containing a list
I wanted to create an Items directory in resources so that all the binary files for each item type will be available for stores to load the file and display it.
I saved a sample binary file containing a list of a set of armor(4 items), took the file and placed it in the directory Items/Armor/cityname.armor. I then discovered I need to use Resources.Load to get something in the resources directory rather than a data path or persistent data path. The posts also recommend that the extension be changed to bytes and to load it as a text asset, but since the data contained within is a list, would that even work?
Thanks!
Comment