Assets/Fungus/Scripts/Components/Localization.cs(189,45): error CS1061: Type `CsvParser' does not contain a definition for `Parse' and no extension method `Parse' of type `CsvParser' could be found. Are you missing an assembly reference?
Assets/Fungus/Scripts/Components/Localization.cs(382,45): error CS1061: Type `CsvParser' does not contain a definition for `Parse' and no extension method `Parse' of type `CsvParser' could be found. Are you missing an assembly reference?
CsvParser csvParser = new CsvParser();
string[][] csvTable = csvParser.Parse(localizationFile.text);
打开CsvParser.cs文件,发现有2个同名文件。
发现之前导入了其他的同名的CsvParser.cs文件
Assets/Fungus/Thirdparty/CSVParser/CsvParser.cs
在这个文件夹中 重新新建了一个CsvParser_Fungus.cs文件
文件位置为Assets/Fungus/Thirdparty/CSVParser/CsvParser_Fungus.cs
把

博客内容讲述了在Unity中使用Fungus库时遇到的CsvParser.Parse错误,由于存在两个同名的CsvParser.cs文件导致。解决方案是创建新的CsvParser_Fungus.cs文件,将旧内容复制并修改名称,然后删除重复的CsvParser.cs文件,从而解决调用错误。

7062

被折叠的 条评论
为什么被折叠?



