Load a binary file from resources containing a list

Updated on April 2, 2020 in Unity
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on April 2, 2020

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?


  • Liked by