简体   繁体   English

使用 Unity 时缺少 ViGEm.NET 命名空间?

[英]ViGEm.NET namespace missing when using Unity?

[this question has the unity3d tag and I can't change it to unity2d] [这个问题有unity3d标签,我不能把它改成unity2d]
I was trying to use ViGEm using this tutorial to help me.我试图通过教程使用 ViGEm 来帮助我。
But when I was writing the code, a red underline appeared on using Nefarius.ViGEm.Client;但是在我写代码的时候,在using Nefarius.ViGEm.Client;出现了一个红色的下划线using Nefarius.ViGEm.Client;
It said: The type or namespace 'Nefarius' could not be found. (are you missing a using directive or an assembly reference?)它说: The type or namespace 'Nefarius' could not be found. (are you missing a using directive or an assembly reference?) The type or namespace 'Nefarius' could not be found. (are you missing a using directive or an assembly reference?)

How do I make this work with Unity?我如何使用 Unity 进行这项工作? I have carefully done every step of the tutorial.教程的每一步我都认真完成。

These steps fixed it:这些步骤修复了它:

  1. Go to the nuget website and download the package.转到 nuget 网站并下载软件包。
  2. Extract the file as a .zip file.将文件解压缩为 .zip 文件。
  3. Go inside the lib folder and copy the .dll file to [Unity Project]\\Assets\\Plugins (create the folder if it doesn't exist)进入lib文件夹并将 .dll 文件复制到 [Unity Project]\\Assets\\Plugins(如果该文件夹不存在,则创建该文件夹)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 System.Net.Http:命名空间中缺少? (使用 .net 4.5) - System.Net.Http: missing from namespace? (using .net 4.5) Unity 2019 错误找不到类型或命名空间名称“NotSupportedException”(您是否缺少 using 指令或程序集引用?) - Unity 2019 error The type or namespace name 'NotSupportedException' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或命名空间名称“ScriptName”(您是否缺少 using 指令或程序集引用?)修复 unity c# - The type or namespace name 'ScriptName' could not be found (are you missing a using directive or an assembly reference?) fix unity c# 当引用或使用指令中包含“类型或名称空间'名称'时丢失” - “The type or namespace 'name' is missing” when it is included in references and using directives 在Unity中使用名称空间隐藏功能 - Using namespace in Unity hides functionality 使用 Facebook 登录,缺少命名空间? - Login using Facebook, missing namespace? 使用Unity作为AOP框架时缺少完整堆栈跟踪 - Full stack trace missing when using Unity as AOP framework ASP.NET添加类和命名空间丢失 - ASP.NET Add class and namespace missing 错误 CS0246:找不到类型或命名空间名称“Player”(您是否缺少 using 指令或程序集引用?) Unity - error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?) Unity Unity 错误 CS0246:找不到类型或命名空间名称“InputField”(您是否缺少 using 指令或程序集引用?) - Unity error CS0246: The type or namespace name 'InputField' could not be found (are you missing a using directive or an assembly reference?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM