位置: 编程技术 - 正文

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

  • 个人工程款收入不纳税
  • 财政的税收
  • 税务检查的定义
  • 一般纳税人工会经费返还政策
  • 单位装修质保金扣留的会计处理
  • 新公司做财务
  • 2021印花税零申报怎么报
  • 税款负担方式是什么
  • 小规模季度超过30万,普票咋交税
  • 生产成本和主营业务成本哪个大
  • 暂估发票未到年报怎么调
  • 财务费用属于什么会计科目类别
  • 财务软件里凭证打印如何设置不打印三级科目
  • win7系统如何查看主板型号
  • 没有系统U盘,电脑密码忘记了如何打开电脑
  • 华为p20上市时间和价格
  • 企业免征增值税证明怎么打印
  • 如何更改windows用户名
  • 公司装修款账务处理
  • 税收保全有哪些
  • win7系统笔记本无线网络找不到
  • 工程项目会计怎么样
  • uniapp传值
  • 固定资产清查盘盈盘亏的账务处理
  • 增值税和所得税区别
  • php调用java接口
  • sync命令是什么意思
  • 帝国cms移动端
  • Huggingface之transformers零基础使用指南
  • 小规模纳税人享受小微企业优惠政策
  • 第三方车行
  • dedecms主页修改
  • 形成固定资产的主要手段是
  • python中lambda用法
  • 两免三减半取消了吗
  • 在计算应纳税所得额时
  • 单位食堂不对外营业需不需要办理经营许可证
  • 个人劳务报酬所得税税率表
  • 个税申报属于哪个部门的职责
  • 出租车发票能不能抵扣进项
  • 开办费计入什么科盿
  • 期末需要结账的账户
  • 企业的银行转账多久到账
  • 管理费用怎样分摊归集到产品
  • 现金日记账如何填写
  • 从个人处借款的会计分录
  • 新准则印花税计提会计分录
  • 开发软件应采用
  • 会计去企业还是国企好
  • windows7的插孔设置在哪
  • win10右键菜单怎么设置
  • windows server 2008 r2怎么用u盘启动
  • 轻松备份怎么用
  • windows7 设置
  • win7虚拟内存如何转移到D盘
  • centos 发行版
  • 苹果mac怎么下载
  • SCP 方便的Linux文件互传
  • Win7系统如何查看隐藏文件
  • win8更新错误
  • [置顶]JM259194
  • jsclass选择器
  • jquery实战
  • unity 3d书籍
  • Node.js中的包管理工具是什么
  • shell脚本的fi
  • DOS命令删除文件夹
  • 表单jsp
  • python关键字none
  • Android Study Day 3 --Android File Read And Write
  • 浅谈关于混合模式教学的看法
  • jquery插件开发方法
  • 安卓手机管家怎么关闭
  • javascript里的yield
  • 宁夏到新疆多少公里?
  • 甲供材备案需要的资料
  • 税务意识形态工作主要内容有哪些
  • 车船发票什么样子
  • 如何查询房屋契税是否退还
  • 云南省代理记账管理实施办法
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设