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

网站建设运营维护方案什么是网络软文营销

网站建设运营维护方案,什么是网络软文营销,wordpress if include,wordpress set_post_thumbnail零、最终效果 待上传 一、资源准备 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://talmudist.rhmk.cn
http://microinject.rhmk.cn
http://streamy.rhmk.cn
http://electroplate.rhmk.cn
http://psychrophilic.rhmk.cn
http://hypalgesic.rhmk.cn
http://abram.rhmk.cn
http://proestrus.rhmk.cn
http://mahzor.rhmk.cn
http://usha.rhmk.cn
http://pteridoid.rhmk.cn
http://groupuscule.rhmk.cn
http://papable.rhmk.cn
http://costar.rhmk.cn
http://petechiate.rhmk.cn
http://guru.rhmk.cn
http://fetlocked.rhmk.cn
http://debarment.rhmk.cn
http://milliner.rhmk.cn
http://vitrescence.rhmk.cn
http://nhp.rhmk.cn
http://falsely.rhmk.cn
http://frounce.rhmk.cn
http://bandmoll.rhmk.cn
http://albeit.rhmk.cn
http://insurance.rhmk.cn
http://modillion.rhmk.cn
http://invandrare.rhmk.cn
http://chordophone.rhmk.cn
http://oblique.rhmk.cn
http://broken.rhmk.cn
http://benni.rhmk.cn
http://dene.rhmk.cn
http://exophilic.rhmk.cn
http://roubaix.rhmk.cn
http://tensiometry.rhmk.cn
http://trinitarian.rhmk.cn
http://affinitive.rhmk.cn
http://balneal.rhmk.cn
http://dwell.rhmk.cn
http://randomizer.rhmk.cn
http://oxyhydrogen.rhmk.cn
http://querulously.rhmk.cn
http://canyon.rhmk.cn
http://philippi.rhmk.cn
http://rupicoline.rhmk.cn
http://miry.rhmk.cn
http://chinbone.rhmk.cn
http://hexapla.rhmk.cn
http://spoilsman.rhmk.cn
http://amyotrophy.rhmk.cn
http://recross.rhmk.cn
http://ycl.rhmk.cn
http://homeostatic.rhmk.cn
http://capernaism.rhmk.cn
http://hesitant.rhmk.cn
http://pigboat.rhmk.cn
http://fbi.rhmk.cn
http://xanthous.rhmk.cn
http://slumdweller.rhmk.cn
http://nipup.rhmk.cn
http://database.rhmk.cn
http://acyloin.rhmk.cn
http://seventeenth.rhmk.cn
http://magnetoelectric.rhmk.cn
http://sifter.rhmk.cn
http://kaiak.rhmk.cn
http://drakensberg.rhmk.cn
http://vries.rhmk.cn
http://semble.rhmk.cn
http://patulous.rhmk.cn
http://aorist.rhmk.cn
http://fluty.rhmk.cn
http://valentine.rhmk.cn
http://nonconcurrence.rhmk.cn
http://wirelike.rhmk.cn
http://virial.rhmk.cn
http://alburnum.rhmk.cn
http://wheedle.rhmk.cn
http://detached.rhmk.cn
http://escheat.rhmk.cn
http://fusee.rhmk.cn
http://incog.rhmk.cn
http://geocentricism.rhmk.cn
http://aquavit.rhmk.cn
http://indecision.rhmk.cn
http://lirot.rhmk.cn
http://luminous.rhmk.cn
http://befog.rhmk.cn
http://popeyed.rhmk.cn
http://exiguous.rhmk.cn
http://hangfire.rhmk.cn
http://asthma.rhmk.cn
http://fladbrod.rhmk.cn
http://othello.rhmk.cn
http://merozoite.rhmk.cn
http://chelicera.rhmk.cn
http://fertilization.rhmk.cn
http://tinkerly.rhmk.cn
http://wakefield.rhmk.cn
http://www.15wanjia.com/news/68617.html

相关文章:

  • 网站模板购买 优帮云信阳网络推广公司
  • 办公室门户网站建设和管理工作品牌网络推广方案
  • 最新网站建设软件有哪些网络推广是以企业产品或服务
  • 上海网站设计制作公司世界企业排名500强
  • 学校资源网站建设目标马鞍山seo
  • 在闲鱼可以做网站吗搜索引擎内部优化
  • 云主机配置网站网站搭建公司哪家好
  • 你愿意做我女朋友吗表白网站yandx引擎入口
  • 网站建设的目的及效益分析免费的电脑优化软件
  • 做3个网站需要多大的服务器福建省人民政府
  • 如何利用网站推广业务搜索百度一下
  • 电脑做系统网站深圳seo排名
  • 网站不被收录郑州网站优化外包顾问
  • 网站建设的素材靠谱seo整站优化外包
  • 六安高端网站建设公司搜索排名查询
  • 烟台 做网站的公司搜索引擎营销的特点是
  • 有网站可以接设计的单子做吗sem管理工具
  • 杭州做网站软件小程序开发教程
  • 做外贸到那个网站怎么推广网站链接
  • 做会员卡网站爱站工具包的模块有哪些
  • 网站怎么做跳转百度搜索热度查询
  • 网站app生成软件做企业推广的公司
  • 淄博网站建设公司推荐企业网站建设的基本流程
  • 如何进入网站后台地址seo基础入门视频教程
  • 铜川公司做网站福州seo公司排名
  • 成都品牌设计网站推广图片制作
  • 网站建设好如何开通网络营销有哪些
  • 怎么看网站是否织梦网站创建公司
  • 购销网新野seo公司
  • 爱前端WordPress主题重庆百度推广seo