This question was
closed Jul 31, 2016 at 01:09 PM by
martinandredill for the following reason:
I found the problem, and its stupid, only rename the folder to "Resources"
Question by
martinandredill · Jul 31, 2016 at 12:40 PM ·
xmlresources.loadlanguage
Load XML in android doesent work
I'm trying to load a language xml file but it doesnt work in android, only in the editor:
xml = new XmlDocument();
xml.Load("Assets/Linguagens/" + linguagem + ".xml");
i tryed multiple ways to make it work but none of this are effective:
TextAsset textAsset = (TextAsset)Resources.Load("Portuguese");
XmlDocument xmldoc = new XmlDocument();
xmldoc.LoadXml(textAsset.text);
i'm missing something? the last one gives null reference exception.
Comment