在Unity3D中读取NFC标签 [英] Reading NFC Tag in Unity3D

查看:826
本文介绍了在Unity3D中读取NFC标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将文本字符串保存在Unity中的NFC标签上.我没有为Android开发的经验,似乎已经成功完成了这项工作,但似乎涉及到我不熟悉的Android SDK和Eclipse的广泛使用.

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.

尽管源代码不完整,但我也找到了该线程,而且我不确定如何声明此if语句中使用的变量:

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

为了使用此代码段和第一篇文章中提到的"var"类型变量,我需要导入任何用法吗?

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

OP已经一年多没有回答所有其他问题了. 我希望这里的人总的来说对NFC有一个答案.

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.

推荐答案

Twinsprite的Pablo将

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.

对我来说很棒!

这篇关于在Unity3D中读取NFC标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆