Linux : System. DllNotFoundException : UnityInterface2. dll

标签 linux unity3d kinect openni xbox360

我正在尝试运行从中导入的 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/

相关文章:

linux - Vagrant provision 在没有明显原因的情况下无法执行下一个脚本

c# - Unity 每次点击都会增加 90º

c# - 使用 MixedRealityToolkit-Unity 在自定义消息中发送字节数组

c# - 运动起点/终点检测

java - SimpleOpenNI 中的 kinect 手势识别

linux - 在 Bash 中以不同的频率运行两个操作

c++ - undefined reference 共享对象 Linux [c++]

linux - 为什么必须在边缘触发的 epoll 函数中使用非阻塞 fd?

c# - 销毁对象时如何使程序执行某些操作?

c# - 检测张开的拳头和闭合的拳头