I have a script that locates and uses a .txt
file. It works fine in editor. But when i build the game for Android (Target Device), game cannot load the same text file.
public void LoadWords()
{
string filePath = "Assets/Resources/Dictionary/dictionary.txt";
string[] words = File.ReadAllLines(filePath);
}
This is the part that loads the dictionary. It works fine in Editor but doesn’t work on Android.
My first preference is fixing the existing code somehow before trying a different method but whatever works, i’m happy.
Thank you in advance.