我正在尝试运行从中导入的 Assets https://www.assetstore.unity3d.com/en/#!/content/10693
它在 windows 中运行良好,但我在 Linux 中的以下代码中出现以下错误
.....code start.......
[DllImport("UnityInterface2.dll", SetLastError=true)]
public static extern int Init(bool isInitDepthStream, bool isInitColorStream, bool isInitInfraredStream);
.......code end........
...error....
System.DllNotFoundException: UnityInterface2.dll
at (wrapper managed-to-native) KinectWrapper:Init (bool,bool,bool)
at KinectManager.Start () [0x00000] in /home/ashok/New Unity Project/Assets/KinectScripts/KinectManager.cs:657
UnityEngine.Debug:LogError(Object)
KinectManager:Start() (at Assets/KinectScripts/KinectManager.cs:808)
最佳答案
不支持 Linux。它不是为在 Linux 上工作而构建的。该插件仅支持 Windows 和 Mac。就是这样。即使您在商店中查看,它也会说该插件适用于 Windows 和 Mac。 Linux 从未在任何地方被提及。
关于Linux : System. DllNotFoundException : UnityInterface2. dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37572195/