错误日志:
error LNK2019: dlopenLinuxInterop_dlopen_mC7E8A8F035BC4C0308E60E03816DD17C741B8042
error LNK2019: dlsymLinuxInterop_dlsym_m5065E52AFDF4B663E35FA3DD7BCEFF269F314DB8
error LNK2019: dlcloseLinuxInterop_dlclose_m085F7A56E787871D089422685DC0AED0ED68DED1
解决方法:
寻找方法:
[DllImport(“__Internal”)]
static extern IntPtr dlopen(string filename, int flags);
加宏,去掉非当前编译平台的代码即可
如:
#if (UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN)
// window code
#else
//linux code
#endif