位置: 编程技术 - 正文

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

  • 其他权益工具投资科目编码
  • 服务类一般纳税人无进项
  • 配建保障房税收规定
  • 餐饮企业购入的啤酒不拿消费税吗
  • 公司债券股票的投资组合思路
  • 小规模纳税人哪些发票可以抵税
  • 组织机构代码是营业执照哪几位数字
  • 酒店收取的赔偿费是什么
  • 购置房屋
  • 空白作废什么意思
  • 债权转增资本应缴纳什么税
  • 小规模企业没有进项发票怎么办
  • 异地施工缴税增值税交多少
  • 增值税零税率发票预缴税额
  • 存货进口关税会计处理怎么做?
  • 财产清查中固定资产盘亏
  • 贷款利息支出属于
  • 做账的是什么会计
  • mac的键盘怎么打开
  • 公司账外废品收入怎么算
  • win 10 请稍后
  • 出口退税率和进项一致吗
  • 事业单位自由资金怎么入账
  • 无形资产商标转让费计入什么科目
  • thinkpade431进去bios设置
  • 药品生产企业应建立
  • 取得专票怎么结转销售成本
  • 属于工业企业期间费用的是
  • 巴伐利亚森林国家公园钍自然真正自然
  • php使用什么开发工具
  • 公司车辆使用费用平均
  • three.js gui
  • 报错专业怎么补救
  • 公司租房电费怎么算
  • 数量金额式账页图片
  • 充话费自定额
  • 企业增值税发票税率是多少
  • 帝国cms商城源码
  • mongodb使用案例
  • phpcms迁移
  • 应收应付款项
  • SQLSERVER 2005的ROW_NUMBER、RANK、DENSE_RANK的用法
  • 分组 sql
  • 小规模纳税人每月不超过10万
  • 公司贷款可以转私户吗
  • 融资租赁的进项怎么做账
  • 贴现凭证如何做账务处理
  • 小规模纳税人销售自己使用过固定资产
  • 对公账户付个人工资怎么入账
  • 小规模纳税人增值税计算公式
  • 怎么接收电子承兑汇票
  • 为什么需要会计信息
  • mysql获取数据库表名
  • MySQL使用show status查看MySQL服务器状态信息
  • win7系统u口怎么禁用
  • win8怎么添加我的电脑到桌面
  • windows server 2008 企业版
  • ubuntu系统怎么更新
  • Win7系统打开设备和打印机里面什么都没有
  • win10系统锁屏后输入密码一直转圈进不去桌面
  • 自己的磁盘
  • 如何显示文件后缀win10
  • ssonsvr.exe - ssonsvr是什么进程
  • 五笔输入法怎么切换中文
  • win8.1网络设置
  • angularjs2
  • 安卓开源好处
  • list嵌套list采用什么结构
  • shell脚本的实现
  • unity3d官方
  • nodejs 异步io
  • JavaScript和HTML DOM的区别与联系及Javascript和DOM的关系
  • jQuery使用Selectator插件实现多选下拉列表过滤框(附源码下载)
  • jquery查找节点
  • 使用jquery实现的项目
  • 产品税务编号查询系统官网
  • 进口商品的消费税计入成本吗
  • 电子三方协议怎么下载
  • 2018年建筑业增值税税率变更文件
  • 宁波个人税务查询网
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设