简体   繁体   中英

ViGEm.NET namespace missing when using Unity?

[this question has the unity3d tag and I can't change it to unity2d]
I was trying to use ViGEm using this tutorial to help me.
But when I was writing the code, a red underline appeared on 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?)

How do I make this work with Unity? I have carefully done every step of the tutorial.

These steps fixed it:

  1. Go to the nuget website and download the package.
  2. Extract the file as a .zip file.
  3. Go inside the lib folder and copy the .dll file to [Unity Project]\\Assets\\Plugins (create the folder if it doesn't exist)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM