I’m trying to load some data from a text file.
I’ve tried AppName.App/Assets and Application.dataPath, but neither seem to work.
Even tried Resources.Load, but can’t figure out how to make that work with StreamReader.
I’m trying to load some data from a text file.
I’ve tried AppName.App/Assets and Application.dataPath, but neither seem to work.
Even tried Resources.Load, but can’t figure out how to make that work with StreamReader.
The assets get compressed into a single file.
You can use the Resources class and folder to retrieve specific assets.
Note: Those resources need to be in a folder named “Resources”
It doesn’t work with the StreamReader very well, however you can load it in as a TextAsset and then get it’s .text property.