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
5
Question by lilithgow · Oct 28, 2009 at 02:09 PM · customizationusbpro-only

Can I access a USB application through Unity?

For an upcoming project, I wanted my game to access usb devices (for rumble and the like) and was wondering where I should start if I wanted to write code for this.

My initial searches have proven a bit fruitless, and I was wondering if anyone had any pointers.

Thanks in advance!

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

3 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by jashan · Oct 31, 2009 at 01:01 AM

You might try something like #usblib (SharpUSBLib). However, as you need native plugins to access USB devices you will need Unity Pro to do that. See also the documentation on plugins (which I can't post as I currently only can post a single link - but it's easy to find in the Unity manual: Unity Manual > Advanced > Plugins - Pro only feature

Comment
Add comment · Show 2 · 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
avatar image lilithgow · Nov 02, 2009 at 01:26 PM 0
Share

Thanks, that sounds fantastic - I'll look into it.

avatar image AngryAnt ♦♦ · Nov 04, 2009 at 10:52 AM 0
Share

Also - do note that plugins are stand-alone only.

avatar image
1

Answer by J3-Gaming · Nov 09, 2011 at 01:01 AM

Unity can import dll library's that can be used on mobile too. If you can write the code you need and compile it as a DLL, your golden

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
avatar image
0

Answer by bloodtiger10 · Oct 31, 2009 at 07:27 PM

you might actually be able to use c# in indie (or free package) but I've never tried to before in c#.

Comment
Add comment · Show 3 · 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
avatar image jashan · Dec 24, 2009 at 10:21 AM 0
Share

C# in Indie (now Unity) works, of course. However, if you need native calls (which is required for USB), you'll need pro. The issue here is not about C# but about the access of native calls.

avatar image cookies · Nov 09, 2011 at 12:40 AM 0
Share

native calls as in... all the function .net framework offers?

avatar image aldonaletto · Nov 09, 2011 at 12:57 AM 0
Share

Native .net functions are accessible in C#, but to access a USB device you will need a plugin - a DLL library of specialized functions - and only Pro can access DLL functions (the DLL functions must be declared in a C# script, then they can be used as any other function).

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Setting Scroll View Width GUILayout 1 Answer

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Material doesn't have a color property '_Color' 4 Answers

Changing splash screen using an editor script 2 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