unity3d Unity:在其他计算机上的独立版本中找不到本机插件 | 您所在的位置:网站首页 › unity3d插件 › unity3d Unity:在其他计算机上的独立版本中找不到本机插件 |
我已经编译并导入了GameNetworkingSockets库到unity Plugins文件夹。当在我的电脑上进行独立构建并运行时,一切正常,但当在另一台电脑上运行构建时,找不到dll文件。我已经确认dll库包含在builds Data/plugins文件夹中。 internal static class Native { private const string nativeLibrary = "GameNetworkingSockets"; [DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)] internal static extern bool GameNetworkingSockets_Init(IntPtr identity, StringBuilder errorMessage); }我已尝试将DLL移动到可执行文件旁边的根文件夹中我尝试过将最小API更改为.net framework本机插件位于“Plugins”文件夹中另外,这是一种wierd,为游戏设置的分辨率(窗口)不是在其他电脑上使用的。提前感谢,并为我的英语不好感到抱歉:) |
CopyRight 2018-2019 实验室设备网 版权所有 |