Reading NFC Tag in Unity3D

泄露秘密 提交于 2019-12-08 06:54:49

问题


I would like to get the text string saved on an NFC tag in Unity. I'm not experienced with developing for Android, it seems there was already success doing this but it seems to involve extensive use of the Android SDK and Eclipse, neither I'm familiar with.

I found also this thread though the source code is incomplete and I'm not sure how to declare the variables used in this if statement: http://forum.unity3d.com/threads/162834-AndroidJavaObject-as-array-for-NFC-access?p=1115826&posted=1#post1115826

Any usings that I need to import in order to use this snippet and the "var" type variable mentioned in the first post?

OP hasn't been answering all the other questions for over a year now. I hoped someone here might have an answer for NFC in general.


回答1:


Pablo from Twinsprite has put a full working example project on GitHub

And he has written a very detailed blog-post about how to create the required plugin yourself.

Works great for me!



来源:https://stackoverflow.com/questions/22513714/reading-nfc-tag-in-unity3d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!