位置: 编程技术 - 正文

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移动代码)

  • 外部奖励与内部奖励
  • 有形动产租赁服务税收分类编码
  • 企业所得税如何做分录
  • 计提城市维护建设费和教育费附加的会计分录
  • 公对私转账没有到账怎么查询
  • 银行存款日记账电子表格模板
  • 专用发票不抵扣怎么做账
  • 其他收益是什么类
  • 税控盘怎么注销需要带什么东西
  • 养蜂合作社怎么申请补贴
  • 营业税金及附加借贷方向
  • 收到生育津贴会计分录怎么做
  • 资本溢价能不能退还股东呢
  • 增值税发票信息错误可以作废重开吗
  • 计划成本法领用原材料会计分录
  • 保证金存款余额
  • 贴息收入什么意思
  • 专用设备抵免企业所得税目录
  • 含税进货价款怎么算
  • 当期免抵税额如何做账
  • 广告制作需要缴纳文化事业建设税吗?
  • 购买税控系统专用设备
  • 销售货物运费的增值税率
  • 土地平整费计入什么科目
  • 增值税防伪税控系统管理办法
  • 个人到税局开具发票流程
  • 影响固定资产折旧的有
  • 完成产值怎么算
  • 什么情况下公司可以开除员工
  • 投资印花税入什么科目
  • windows无法连接到system Events
  • 圣帕特里克的传说
  • 产品成本核算方法
  • iqoo怎么开启无线充电
  • 委托证券公司购入公允价值为100万元的股票
  • 服务业增值税加计扣除账务处理
  • 成本费用科目包括
  • 升级nodejs到最新版本
  • jasperreports入门
  • “oracle”
  • vue el-
  • 如何使用首页
  • vue组件怎么使用
  • 收到外币汇款怎么处理
  • 分公司要不要银行开户
  • 赔偿客户款应该怎么记账
  • 年度结转增值税
  • 建筑劳务公司需要什么资质
  • 私车公用怎么办理手续
  • 资产负债表其他应收款包括哪些内容
  • 其他综合收益会影响未分配利润吗
  • 高新企业收到政府补贴
  • 营业执照是什么字体
  • 双分录怎么做记账凭证
  • 社区居委会有哪些成员
  • 企业所得税征前还是征后
  • 建筑企业如何按季度申报
  • 受托代销商品款是什么意思
  • 兼营即征即退产品 增值税
  • 快捷酒店财务一般几个人
  • 增值税递延纳税
  • 连续三个月发烧怎么回事
  • 电子税务局财务报表在哪里查询
  • 银行承兑汇票如何背书转让
  • sqlserver获取数据库名
  • win10怎么添加
  • linux telnet用法
  • apache禁用trace方法
  • linux中命令行
  • win8安全和维护在哪
  • iredmail是免费的吗
  • webrtc介绍
  • Android ListViewitem滑动出现删除按钮
  • unity 120帧
  • js解析json字符串获取key
  • jquery加载中
  • 广东省地方税务局公告2017年第7号
  • 定期定额个体户需要申报个人所得税吗
  • 出口退税的企业货币要回国内吗
  • 文明6地球地图自然奇观位置
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设