按以前的方式把读Excel需要的3个DLL文件放在Plugins文件夹里,按说还要放一个System.Data(没记错的话)
到Unity的安装目录里找到(有点难找,路径是:/Applications/Unity/Hub/Editor/2019.4.17f1c1/Unity.app/Contents/MonoBleedingEdge/lib/mono/2.0-api/System.Data.dll),
拖进去,编辑器报错:
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.error CS1703: Multiple assemblies with equivalent identity have been imported: '/Users/yangjiujiu/Documents/STG/ShootingGameTest/Assets/Plugins/System.Data.dll' and '/Applications/Unity/Hub/Editor/2019.4.17f1c1/Unity.app/Contents/NetStandard/compat/2.0.0/shims/netfx/System.Data.dll'. Remove one of the duplicate references.
Microsoft(R)Visual C#编译器版本2.9.1.65535(9d34608e)
版权所有(C)Microsoft Corporation。版权所有。
错误CS1703:已导入具有相同标识的多个程序集:'/Users/yangjiujiu/Documents/STG/ShootingGameTest/Assets/Plugins/System.Data.dll' 和 '/Applications/Unity/Hub/Editor/2019.4.17f1c1/Unity .app / Contents / NetStandard / compat / 2.0.0 / shims / netfx / System.Data.dll”。删除重复的引用之一。
难道是Unity更新版本后不需要放这个DLL了?(当前Unity版本:2019.4.17f1c1)
总之暂且删掉了,ok