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
0
Question by tanuj0092 · Oct 08, 2013 at 07:48 AM · hardware

Literally coin-op hardware? Communication between Unity and hardware.

Basically I am developing a game of type which are present in malls which require coins to continue. So, is there any plugin or unity has this feature inbuilt?

Comment
Add comment · Show 1
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 ShadoX · Oct 08, 2013 at 08:18 AM 0
Share

Depending on the device you could just write it yourself using C# or look into other options. If the device exist someone has most probably already written some code to communicate with it or at last get info from it. In the worst case you could just use another language that takes care of getting the info from the coin slot and forwards it to the game.

The best we can do without having the hardware itself is to just help you look for existing solutions, but in that case it would be nice if you could actually mention what kind of device you're talking about inc. some serial number or some other info which we could use to find out more about the device.

Or were you looking for suggestion on the hardware itself? (For example a laser could work)

2 Replies

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

Answer by tanoshimi · Oct 08, 2013 at 08:11 AM

I'd do it via an Arduino.

  • Here's an explanation of wiring a coin mech to an Arduino: http://www.instructables.com/id/Make-Money-with-Arduino/

  • And here's an asset to communicate between Arduino and Unity: https://www.assetstore.unity3d.com/#/content/6804

Comment
Add comment · Show 4 · 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 AlfredDuler · Oct 08, 2013 at 08:22 AM 0
Share

Ahahah! So great, I looked at this question and thought that nobody would answer it. And then you came with this one, like it's feasable. I like the idea so much I think I'm gonna invest in one of these to play with it. Thanks for pointing this!

avatar image Fattie · Oct 08, 2013 at 09:37 AM 0
Share

Alfred, as a new user, you need to please TIC$$anonymous$$ an answer to close out the question. Cheers

avatar image AlfredDuler · Oct 08, 2013 at 10:17 AM 0
Share

I'm definitely not the OP. just interested in the answer :)

avatar image tanuj0092 · Oct 09, 2013 at 05:26 AM 0
Share

Hi Tanoshimi,

Thank you very much. I will definitely look for that. :)

avatar image
0

Answer by Shaolin-Dave · Jan 18, 2016 at 01:58 PM

It's actually a lot simpler than you'd think. You can just use Unity's built-in input system. No need for an Arduino, no need for plugins or extensions of any kind.

Create a new input, call it something like "Coin". Then using a keyboard encoder (like the x-arcade or iPac), wire up the keyboard inputs to authentic arcade joysticks, buttons, and coin mechanisms.

When you put a coin into the mech, it'll send a signal to Unity just like a button being pressed. Just work it into your games controls.

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

19 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

Related Questions

Best Android Tablet for Unity? 1 Answer

Way to know the power of a hardware on a mobile? 3 Answers

How can I detect if the back button is virtual or physical? Hardware or Software Device buttons 2 Answers

Does Unity run on M1 Macbook Pro? 0 Answers

Use android phones hardware camera button? 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