位置: 编程技术 - 正文

Vuforia How To Use Android Plugins in Unity Apps

编辑:rootadmin
How To Use Android Plugins in Unity Apps

推荐整理分享Vuforia How To Use Android Plugins in Unity Apps,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

Vuforia How To Use Android Plugins in Unity Apps

This article explains how to do two things:

Take custom Android plugins that are written in Java and integrate them into a Vuforia-based Unity projectInvoke methods defined in the Java plugin from a Unity C# script.The Image Targets sample is a starting point for a Unity project example.Integrate plugins into a Vuforia-based Unity projectCreate a Unity project. For ease of reference we refer to it as QcarWithPlugin.Import the Image Targets sample package for Unity(Menu > Assets > Import custom package)Double-click the Image-Targets scene in the project view. The three Image Targets and their associated teapot models should appear in the scene view.Create a new Android project in Eclipse. For ease of reference the project is called MyPlugin, so it is assumed that the main activity will be called MyPluginActivity.Right-click on the project in Eclipse, go to Properties > Java Build Path > Libraries. Add the following two libraries as external jars (both located under the Assets/Plugins/Android/ folder of the Unity project):QCAR.jarQCARUnityPlayer.jarOpen the MyPluginActivity.java file in Eclipse, and make the following code changes:Make MyPluginActivity extend QCARPlayerActivity instead of Activity. Press Ctrl-Shift-O to adjust the imports automatically.From the onCreate() method, remove the line setContentView(…).Add a custom public method called showMessage() to the MyPluginActivity class. Fill the method with some code to display a Toast message with text.The code of your MyPluginActivity should look like the following code:Invoke methods defined in the Java pluginRight-click on your project, go to Properties > Android, and check the IsLibrary checkbox to turn your Android project into a library.This action should make Eclipse generate a .JAR file (for example, myplugin.jar) and store the file in the /bin folder of your Eclipse project.Open the /bin folder and copy the JAR library from that folder to the Assets/Plugins/Android/ folder of your Unity project.Open and edit the AndroidManifest.xml file located in the same Assets/Plugins/Android/ directory.Replace the name of the main activity with your fully qualified Activity name, for example, com.my.org.MyPluginActivity.Create a C# script, call it MyPluginCaller, for example, and attach it to each of your Image Targets in the scene (Chips, Stones, Tarmac, etc.).Copy and then paste the following code in your script. The code will make your script invoke the showMessage() method of your MyPluginActivity class whenever a target is detected:Now the project should be ready to build and run on your Android device.原文地址点击这里

unity3d移动平台减小安装包大小专题(5):共用动作文件 以前就觉得很多武将的动作其实差不多,例如受击,死亡,但鉴于武器不同,就没处理,而且只是共用一两个动作带来的性价比不高。但最近来的小兵

Unity3D定时器的调用 转载自:

【北漂勇士】利用unity和NGUI开发一个RPG类型的游戏 我计划从明天开始,额,是从今天开,始,大概用一学期的时间开发一款角色扮演类型的游戏,作为我将来找工作时展示的作品吧,我特意找到了《dunge

标签: Vuforia How To Use Android Plugins in Unity Apps

本文链接地址:https://www.jiuchutong.com/biancheng/382564.html 转载请保留说明!

上一篇:Unity3D中的Prefab使用方法(unity preferences)

下一篇:unity3d移动平台减小安装包大小专题(5):共用动作文件(unity3d移动代码)

  • 一般纳税人每个月需要报哪些税
  • 增值税发票认证在哪里
  • 印花税应税凭证书立日期怎么写
  • 城镇土地使用税的计算公式
  • 税务师的含金量怎么样
  • 个人所得税应纳税所得额减半征收
  • 中国税务师协会税务师官网
  • 工程结算时如何确认收入
  • 法人和办税人
  • 事业单位资产划转流程
  • 个体工商户办税务
  • 清算期间公司不再存续
  • 企业所得税债务重组所得
  • 增值税进项没收到必须开销项怎么办?
  • 审计费用需要计什么科目
  • 私立医院增值税税率是多少
  • 销项税额转出税额怎么做账?
  • 报税需要带营业执照吗
  • 结余资金财政收回如何做账
  • 公司注销清算企业所得税申报表怎么填
  • win7鼠标点右键没反应
  • php ord
  • 事业单位年末收入怎么算
  • 高德地图api获取当前经纬度的城市地图
  • php写木马
  • 计提坏账准备的方法
  • 建筑保温材料施工工艺
  • 吸收合并重组
  • 朱顶雀的饲养
  • php 无限级分类
  • 对公账户的银行卡号是几位数
  • vue项目内html
  • vue前进后退
  • bluetooth hci0 command timeout
  • 主营业务成本入账分录
  • 政府会计代扣公积金怎么做分录
  • php实现站内消息推送
  • day35-JSON&Ajax03
  • Python函数怎么返回
  • 对外捐赠固定资产会影响利润总额吗
  • 下列项目的进项税额可以从销售税额中抵扣的是
  • 公司能经营烟草公司吗
  • 小规模纳税人注册流程
  • 管理费用明细科目大全
  • 利润表中的所得税费用包括哪些
  • 退回企业所得税的账务处理
  • 年应税销售额是指纳税人在连续不超过12个月或四个季度
  • 应收业务处理流程
  • 短期借款可以用于在建工程吗
  • 营改增后增值税增加了什么征收范围
  • 某企业2013年12月30日购入一台不需要安装的设备
  • 应交税费的进项和销项是什么意思
  • 应付职工薪酬多计提了如何冲掉
  • 房屋租赁费可以抵扣吗
  • 运输公司自有车辆是什么意思
  • 年报中纳税总额是本年实际缴纳的还是应纳税额
  • 总分包模式和总承包模式
  • 广告费和广告发布费什么区别
  • 新注册公司工商如何做印章确认
  • 如何防止sql注入及数据安全问题
  • linux动态链接库怎么调用
  • win8怎么关闭实时保护
  • win7系统怎么设置桌面便签
  • linux在哪里操作
  • win10搭建ftp服务器的步骤
  • pcl读取ply文件
  • node.js javascript
  • 动态规划之矩阵连乘
  • jquery自定义事件
  • hbuilderx打包app教程
  • 利用pm2部署多个设备
  • linux搭建ftp服务器
  • 很不错的两款Bootstrap Icon图标选择组件
  • 国家税务总局票据丢失罚款标准
  • 税务核查是什么意思
  • 残疾人交房产税有什么优惠
  • 亦庄税务局电话号码
  • 宁波税务局qzzn
  • 车船发票什么样子
  • 国家税务总局查询发票
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设