http://www.cnblogs.com/solq/archive/2012/05/21/2511522.html TextAsset t = (TextAsset)Resources.Load("skill2"); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(t.text.ToString().Trim()); XmlElement n = (XmlElement)xmlDoc.SelectSingleNode(&
将某二进制文件放在Resources目录下,希望用Resources.Load<TextAsset>的方式读取,发现TextAsset是null 查阅Unity文档得知,使用Resources.Load读二进制文件,则文件扩展名必须为bytes 另外注意,Resources.Load的路径不要包含扩展名 Please notice that files with the .txt and .bytes extension will be treated as text and binary f