位置: 编程技术 - 正文

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

  • 运输费用怎么计算出来
  • 进口增值税完税证明
  • 外债利息支付需要按照天计算吗?
  • 五联普通发票盖章要求
  • 固定资产盘亏怎么算
  • 应付职工薪酬代扣款项账务处理
  • 公司车无偿过户给个人需要什么手续
  • 企业法人个人帐户是什么
  • 委托加工物资的账务处理例题
  • 为什么报税资料老是显示有
  • 公司没有员工怎么零申报
  • 企业股权设计咨询这个行业怎么样
  • 职工赔偿金的账务处理
  • 工程发票开具所需资料有什么?
  • win10怎么打开任务管理器
  • 在线上网测试
  • Win10 Build 21364 预览版正式更新(附更新内容)
  • ubuntu 20.04.1
  • php curl_multi_init
  • 什么是董事会费
  • php require include
  • 长期挂账的其他应付账款怎么处理
  • 工资申报怎么写
  • PHP:imagesettile()的用法_GD库图像处理函数
  • 工业企业制造费用核算范围
  • 如何写php守护进程数据
  • PHP:imagecolorclosestalpha()的用法_GD库图像处理函数
  • 收到外汇货款
  • php生成随机字母数字代码
  • 税务系统申报表
  • 占统治地位的英文短语
  • 子公司提取盈余公积 合并抵消
  • pytorch基础
  • pilot coat
  • 解压.xz文件命令
  • uncompressing
  • 递延所得税资产怎么计算
  • 按月计提固定资产折旧算收入吗
  • 增值税发票如何作废流程
  • 预缴税款计算表填0.01行吗
  • 小微企业增值税优惠政策最新2023
  • sql server使用sql语句
  • PostgreSQL教程(二十):PL/pgSQL过程语言
  • 小企业长期债券投资入账价值
  • 水电费没有收到怎么处理
  • 员工多交个税企业就少交所得税吗?
  • 一年发一次工资好不好
  • 资本化支出计入什么科目
  • 旅行社差额征收税率多少
  • 股票股利应该何时分摊
  • 企业出售废旧材料的收入
  • 行政事业单位支出范围和标准
  • 外经证是干什么用的
  • 劳务报酬与经营所得
  • 进口货物的库存商品金额依据
  • mysql安装与配置的步骤与常用命令
  • linux上mysql安装详细教程
  • 理解 成为 超越梗
  • centos7如何设置中文
  • ubuntu安装lnmp环境
  • ubuntu 11
  • 一键ghost还原备份
  • win8触摸板失灵怎么办
  • mac下使用8086汇编
  • linux系统获取dhcp地址
  • windows10的操作中心
  • cocos2d 动画
  • 置顶朋友圈怎么设置
  • python利用for循环求1到100的奇数之和
  • nodejs quic
  • 简单又实用的
  • python多线程异常后所有线程均不往下执行
  • js进行表单验证的目的是什么
  • [置顶] Deniz Saypinar
  • android系统内核基于什么操作系统?
  • javascript中继承
  • python的介绍
  • 税务核销
  • 购买税控盘的发票需要交印花税吗?
  • 青年税务培训内容有哪些
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设