位置: 编程技术 - 正文

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

  • 实际出资人享有什么权利
  • 小微企业应纳税所得额怎么计算
  • 企业收到补贴需要开票吗
  • 公司买金蝶计入什么科目
  • 免抵退税办法不得抵扣的进项税额包含了什么业务
  • 开仓库需要营业执照吗
  • 固定资产的折旧方法一经选定,不得随意变更
  • 房产证印花税如何计算
  • 应计利息会计分录处理
  • 股权投资损失该如何做账务处理及税前扣除相关规定
  • 标书费收据丢失怎么办
  • 住宿费餐费怎么做分录
  • 增值税专票电话号码错了有关系吗
  • 印花税这个月没交下个月补报可以吗?
  • 农产品一般纳税人免税吗
  • 销售方针有哪些
  • 公户转账备注写错会查吗
  • 会计成本核算的三种基本方法
  • 劳动生产总值计算公式.doc
  • 跨年度残保金退税怎么算
  • 公司旅游的费用怎么算
  • win11怎么调整任务栏位置
  • 应付账款暂估借方余额怎么处理
  • 发票认证的注意事项包括
  • 房地产企业使用什么准则
  • 工业危废处理的前景
  • 增加注册资本的请示
  • 销售商品尚未发出会计分录
  • 安卓车机系统开发
  • nvm安装及全局配置node
  • 若依框架是什么框架
  • framework怎么用
  • typescript4.1
  • 毕业设计教程
  • PyTorch深度学习实战 | 基于ResNet的人脸关键点检测
  • 在vue3项目中使用vue2
  • Spring Boot 3.0 正式发布,王炸!!
  • 个体工商户在哪开电子发票
  • 购买汽车相关费用标准
  • db2之间的数据库迁移
  • 坏账核销的会计处理
  • sqlserver2005数据库磁盘满了什么文件能删
  • 文化建设费税率
  • 办公楼出租如何交税
  • 营改增后哪些费用可以抵扣
  • 已提足折旧固定资产
  • 用党委的经费买房可以吗
  • 支付政协扶贫款怎么做账
  • 发票开出来对方不走账会怎么样?
  • 数量金额式明细账余额怎么填
  • 预付款项为什么属于资产
  • 库存现金是负数怎么调
  • 销售商品提供劳务收到的现金占比怎么算
  • Mail.app增强插件:Universal Mailer介绍
  • xp系统怎么打开开机启动项
  • 怎样打开进程管理器功能
  • win 超级终端
  • 远程桌面的文件怎么无法复制到本地桌面
  • win7 64位系统无法清空回收站的故障原因及解决方法
  • win7如何运行命令
  • windows7如何设置时间格式
  • win7系统安装的配置要求有什么
  • windows xp快捷键设置在哪
  • unity3d怎么编程
  • bootstrap响应式导航条模板使用详解(含下拉菜单,弹出框)
  • jquery mouse
  • intent传递数据的方法
  • nodejs 回调
  • 超实用的八个开车技巧
  • javascript 基础篇2 数据类型,语句,函数
  • Unity3D游戏开发标准教程
  • jquery键盘事件及keycode大全
  • unable to instantiate decoder
  • javascript含义
  • substrate框架原理
  • 申请电子发票需要去税务局吗
  • 税务代收是什么意思
  • 股权转让查账重点查什么
  • 生育保险证明去哪里办
  • 公司小规模怎么纳税
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设