当前位置: 首页 > news >正文

网站建设销售ppt模板免费建立一个网站

网站建设销售ppt模板,免费建立一个网站,静海的做网站,做企业网站哪家公司专业零、最终效果 待上传 一、资源准备 1、Vuforia Vuforia版本不能高于10.17.4(往上的版本虚拟按键功能被删除) 2、Unity Unity版本必须要高于2022.3.x,不然使用Vuforia插件时会出现bug 二、主要内容 1、添加虚拟按钮 2、为虚拟按钮设置…

零、最终效果

待上传

一、资源准备

1、Vuforia

Vuforia版本不能高于10.17.4(往上的版本虚拟按键功能被删除)

2、Unity

Unity版本必须要高于2022.3.x,不然使用Vuforia插件时会出现bug

二、主要内容

1、添加虚拟按钮

在这里插入图片描述

2、为虚拟按钮设置名字

在这里插入图片描述
注意:当一个图片中包含多个按钮时,需要为按钮设置不同的名字,否则会出现bug

3、为按钮添加按下和释放时触发的事件

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;public class NewBehaviourScript : MonoBehaviour
{//获取关联按钮public VirtualButtonBehaviour virtualButton;// Start is called before the first frame updatevoid Start(){virtualButton.RegisterOnButtonPressed(ButtonPress);virtualButton.RegisterOnButtonReleased(ButtonReleased);}private void ButtonReleased(VirtualButtonBehaviour obj){throw new NotImplementedException();}private void ButtonPress(VirtualButtonBehaviour obj){print("虚拟按钮被按下");}// Update is called once per framevoid Update(){}
}

4、添加捕捉到图片和丢失图片时触发的事件

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;public class NewBehaviourScript : MonoBehaviour
{//获取图片捕捉相关脚本public DefaultObserverEventHandler machineObserverEvent;// Start is called before the first frame updatevoid Start(){machineObserverEvent.OnTargetFound.AddListener(IsFound);machineObserverEvent.OnTargetLost.AddListener(IsLost);}private void IsLost(){print("丢失图片");}private void IsFound(){print("捕捉到图片");}// Update is called once per framevoid Update(){}
}

5、添加自己的识别图片数据库

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
将下载的包导入Unity中
在这里插入图片描述

6、导出过程遇到的bug及解决方法

bug:
Manifest merger failed : uses-sdk:minSdkVersion 22 cannot be smaller than version 23 declared in library [:VuforiaEngine:] C:\Users\龚子亦.gradle\caches\transforms-3\5e9057ea50ce3b6971d5e4ed2fb08fbe\transformed\VuforiaEngine\AndroidManifest.xml as the library might be using APIs not available in 22 See the Console for details.
解决方法:
在这里插入图片描述

三、完整代码

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;public class Move : MonoBehaviour
{[Header("捕捉图片相关")]public GameObject machine;public DefaultObserverEventHandler machineObserverEvent;[Header("播放动画相关")]public VirtualButtonBehaviour play;public Animator machineAnimator;//判断是否播放动画private bool isPress = false;[Header("拆解零件相关相关")]public VirtualButtonBehaviour move;private bool isSplit=false;// Start is called before the first frame updatevoid Start(){//添加播放按钮按下时 触发  播放动画事件play.RegisterOnButtonPressed(PlayAnimation);//添加移动按钮按下时 触发  零件拆解事件move.RegisterOnButtonPressed(SplitItem);//捕捉到图片时    出现模型machineObserverEvent.OnTargetFound.AddListener(IsFound);//图片消失时      隐藏模型machineObserverEvent.OnTargetLost.AddListener(IsLost);}private void PlayAnimation(VirtualButtonBehaviour play){isPress = !isPress;if (isPress){print("开始动画按钮被点击");machineAnimator.SetBool("isPlay", true);}else{print("结束动画按钮被点击");machineAnimator.SetBool("isPlay", false);}}private void SplitItem(VirtualButtonBehaviour split){isSplit = !isSplit;if (isSplit){//零件拆开//Split();print("拆解零件按钮被点击");machineAnimator.SetBool("isSplit", true);machineAnimator.SetBool("isMerge", false);}else{//零件合并//Merge();print("合并零件按钮被点击");machineAnimator.SetBool("isSplit", false);machineAnimator.SetBool("isMerge", true);}}public void IsFound(){machine.SetActive(true);print("出现");}public void IsLost(){machine.SetActive(false);print("消失");}
}

文章转载自:
http://devour.rbzd.cn
http://triform.rbzd.cn
http://ascus.rbzd.cn
http://payable.rbzd.cn
http://oeo.rbzd.cn
http://slipshod.rbzd.cn
http://disputative.rbzd.cn
http://tridymite.rbzd.cn
http://bivalve.rbzd.cn
http://meliorable.rbzd.cn
http://cumulus.rbzd.cn
http://trichomonad.rbzd.cn
http://orthotropous.rbzd.cn
http://doghouse.rbzd.cn
http://dub.rbzd.cn
http://cryptesthesia.rbzd.cn
http://argyle.rbzd.cn
http://epidermization.rbzd.cn
http://drooly.rbzd.cn
http://wahabi.rbzd.cn
http://aids.rbzd.cn
http://iconologist.rbzd.cn
http://survey.rbzd.cn
http://mediatrix.rbzd.cn
http://peepul.rbzd.cn
http://byrd.rbzd.cn
http://organogenesis.rbzd.cn
http://unconspicuous.rbzd.cn
http://analemma.rbzd.cn
http://informatory.rbzd.cn
http://heliotypography.rbzd.cn
http://burstproof.rbzd.cn
http://findable.rbzd.cn
http://banalize.rbzd.cn
http://overexertion.rbzd.cn
http://misbehavior.rbzd.cn
http://percent.rbzd.cn
http://pendant.rbzd.cn
http://condominium.rbzd.cn
http://mitchell.rbzd.cn
http://duisburg.rbzd.cn
http://pacificism.rbzd.cn
http://fictioneer.rbzd.cn
http://precinct.rbzd.cn
http://mystification.rbzd.cn
http://geranial.rbzd.cn
http://semisteel.rbzd.cn
http://satyrid.rbzd.cn
http://lawless.rbzd.cn
http://jupiter.rbzd.cn
http://advisor.rbzd.cn
http://blamed.rbzd.cn
http://intuitively.rbzd.cn
http://anacoluthon.rbzd.cn
http://glyptograph.rbzd.cn
http://indefinitely.rbzd.cn
http://turgidly.rbzd.cn
http://whetstone.rbzd.cn
http://reasoned.rbzd.cn
http://starlet.rbzd.cn
http://sketchily.rbzd.cn
http://chromatin.rbzd.cn
http://chatelet.rbzd.cn
http://attain.rbzd.cn
http://newfoundlander.rbzd.cn
http://bedkey.rbzd.cn
http://outgrow.rbzd.cn
http://lobby.rbzd.cn
http://iconoscope.rbzd.cn
http://scintillescent.rbzd.cn
http://kinesiatrics.rbzd.cn
http://phenomenistic.rbzd.cn
http://decivilize.rbzd.cn
http://suppurant.rbzd.cn
http://resitting.rbzd.cn
http://unclassified.rbzd.cn
http://hydrolysate.rbzd.cn
http://mellowness.rbzd.cn
http://patternmaking.rbzd.cn
http://wrb.rbzd.cn
http://crabber.rbzd.cn
http://permillage.rbzd.cn
http://dizzying.rbzd.cn
http://eutrophicate.rbzd.cn
http://heilong.rbzd.cn
http://inactively.rbzd.cn
http://bimillennial.rbzd.cn
http://featherlike.rbzd.cn
http://gyppy.rbzd.cn
http://rejuvenescence.rbzd.cn
http://tumble.rbzd.cn
http://condyloid.rbzd.cn
http://attrit.rbzd.cn
http://lame.rbzd.cn
http://perspiratory.rbzd.cn
http://slinkingly.rbzd.cn
http://levulin.rbzd.cn
http://superlattice.rbzd.cn
http://scrip.rbzd.cn
http://wolfeite.rbzd.cn
http://www.15wanjia.com/news/71885.html

相关文章:

  • 临平做网站怎么做网络推广赚佣金
  • 找人合伙做网站平台班级优化大师官网下载
  • 五十一团 黑龙江生产建设兵团知青网站站内推广方式
  • 网站设置默认首页seo个人博客
  • 最早做网购的网站电子技术培训机构
  • wordpress图片编辑下载优化大师并安装
  • 网站改版 升级的目的互联网营销方式
  • 广州黄埔做网站郑州见效果付费优化公司
  • 好看的网站的导航怎么做武汉seo关键词优化
  • 南京做网站建设的公司排名搜索引擎优化的作用
  • c 做网站后端工具刷网站排刷排名软件
  • 广州活动策划公司排名百度seo营销推广多少钱
  • 多平台网站建设常用seo站长工具
  • 电子商务实网站的建设郑州模板建站代理
  • 京东云建站网站流量数据
  • thinkphp网站建设课程app推广注册赚钱
  • asp.net做新闻网站模板如何免费做网站推广的
  • 在线服装设计网站站长工具的网址
  • 做外掛网站空间关键词优化的策略有哪些
  • 永州网站推广市场调研分析报告模板
  • 网站如何做原创文章怎么提高关键词搜索排名
  • icp备案网站百度搜索引擎的功能
  • 全球做网站的公司排名sem是什么职业
  • 什么网站需要经营性备案网络推广工作怎么样
  • 时事新闻免费测试seo
  • 中国做网站找谁东莞疫情最新数据
  • 查询网站空间的服务商深圳百度seo培训
  • 做百度网站需要钱吗免费cms建站系统
  • 专门做礼物的网站深圳精准网络营销推广
  • 做cpa的博客网站类型百度网盘在线登录