当前位置:网站首页>HoloLens 2开发:使用MRTK并在Unity中模拟手势输入
HoloLens 2开发:使用MRTK并在Unity中模拟手势输入
2022-07-24 05:22:00 【一只小EZ】
使用MRTK
MRTK介绍见:https://github.com/microsoft/MixedRealityToolkit-Unity
打开https://github.com/microsoft/MixedRealityToolkit-Unity/releases
下载Foundation 以及 Examples 两个unity包
注:关于环境配置和Unity版本请见:
https://docs.microsoft.com/zh-cn/windows/mixed-reality/install-the-tools
打开Unity 新建工作空间 导入好两个下载的包
在资源管理器中打开MixedRealityToolkit.Examples\Demos\HandTracking\Scenes
的 HandInteraction场景
打开后如图所示:如果3D图标过大需要进行Gizmos上3D Icons的调节
点击Play按钮启动场景,即可在编辑器模式下进行HoloLens2操作模拟。下面是操作说明:
1.使用WSAD可以进行前后左右移动
2.摁住鼠标右键可以移动视角
3.摁住空格键可以显示右手 摁住左shift键可以显示左手。摁住的同时移动鼠标可以进行手的移动。
4.使用鼠标滚轮可以进行手部的前后移动
5.使用Q/E R/F Z/X 键可以对手部进行旋转
6.使用鼠标左键可以改变手部的操作状态(摁住/放开)
7.使用T/Y键可以永久显示左/右手 再次摁键可以取消
使用滚轮移动手来关闭帧率指示器:
8.摁住手的同时点击鼠标左键可以改变手的状态,可以进行抓取缩放等操作.
演示如下:

参考:https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/InputSimulation/InputSimulationService.html
边栏推荐
- Machine learning (Zhou Zhihua) Chapter 3 Notes on learning linear models
- 字符串方法以及实例
- Bat batch script, running multiple files at the same time, batch commands executed in sequence, and xshell script.
- Vsual studio 2013 environment UDP multicast
- Headlong platform operation
- DeepSort 总结
- Day-7 JVM end
- QT drawing exception using pure code
- Day3 jvm+ sorting summary
- day1-jvm+leetcode
猜你喜欢
![[activiti] gateway](/img/8c/c89ec6c4c5871a32218ddadfd8beba.png)
[activiti] gateway
![[activiti] group task](/img/f1/b99cae9e840d3a91d0d823655748fe.png)
[activiti] group task

JDBC进阶—— 师承尚硅谷(DAO)

AD1256

Machine learning (zhouzhihua) Chapter 2 model selection and evaluation notes learning experience

Answers and analysis of some after-school exercises in signals and systems (Wujing)
![[FatFs] migrate FatFs manually and transfer SRAM virtual USB flash disk](/img/fb/5f3d17f1f3d6e4979ece5126e2925e.png)
[FatFs] migrate FatFs manually and transfer SRAM virtual USB flash disk

Qt新建工程简介

STM32 standard peripheral Library (Standard Library) official website download method, with 2021 latest standard firmware library download link

day2-WebSocket+排序
随机推荐
day3-jvm+排序总结
JUC并发编程基础(8)--读写锁
Qt 使用纯代码画图异常
Answers and analysis of some after-school exercises in signals and systems (Wujing)
Foundation of JUC concurrent programming (4) -- thread group and thread priority
Use QT to connect to MySQL and create table numbers, write data, and delete data
Vsual studio 2013 environment UDP multicast
Demo of UDP communication applied to various environments
Conversion of world coordinate system, camera coordinate system and image coordinate system
JUC并发编程基础(4)--线程组和线程优先级
JUC concurrent programming foundation (9) -- thread pool
MySQL download and installation environment settings
STM32 DSP库MDK VC5\VC6编译错误: 256, (const float64_t *)twiddleCoefF64_256, armBitRevIndexTableF64_256,
CRC-16 Modbus代码
【深度学习】手把手教你写“手写数字识别神经网络“,不使用任何框架,纯Numpy
day6-jvm
[deep learning] teach you to write "handwritten digit recognition neural network" hand in hand, without using any framework, pure numpy
C语言链表(创建、遍历、释放、查找、删除、插入一个节点、排序,逆序)
Numpy array broadcast rule memory method array broadcast broadcast principle broadcast mechanism
AD1256