Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by PsychoDuckArcade · Aug 31, 2014 at 08:57 PM · inputplugindllpluginsnamespace

XInputDotNetPure plugin: Namespace could not be found.

So to avoid using the tedius Input Manager, I decided to try out an XInput plugin for Unity: https://github.com/speps/XInputDotNet

I followed the instructions under the Using With Unity section (three attempts), including the special instructions for the free version (which is what I have), yet visual studio still can't find the namespace:

 using XInputDotnetPure;

I've tried closing and re opening unity and visual studio; didn't help. I get no errors in the actual inspector, but in visual studio I get the standard "The type or namespace name 'XInputDotNetPure' could not be found (are you missing a using directive or an assembly reference?)" error.

The test project and scene that comes with XInputDotNet doesn't give me this error and seems to work fine.

EDIT: Actually the test project and scene now IS giving me the same error. However, upon testing, the code DOES in fact work. 360 controller input IS working with the plugin..

So this is now a much more minor problem than I had originally thought, hopefully my code will still work, but it is going to be quite inconvenient coding without the intellisense for anything that uses the namespace. Not too big a deal, but still, a solution would be nice.

I'm guessing now this is a visual studio issue more than it is a Unity issue?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TylakNFusion · Sep 20, 2017 at 10:10 AM

I was having a problem with this plugin also but I was able to fix it by configuring the dll import settings. Make sure you configure the following:

  • XInputDotNetPure.dll

  • x86/XInputInterface.dll

  • x86_64/XInputInterface.dll

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

nonstatic extern functions from DLL plugin import 1 Answer

How to add a custom module to Unity? 0 Answers

Can I use my own input device? 4 Answers

Error loading a 3.0 framework dll (WFC) 1 Answer

How to link to scripts in the Package Manager when building a dll. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges