学习源于官方文档 Gestures in Unity
笔记一部分是直接翻译官方文档,部分各人理解不一致的和一些比较浅显的保留英文原文
(五)Hololens Unity 开发之 手势识别
HoloLens 有三大输入系统,凝视点、手势和声音 ~ 本文主要记录手势识别的学习笔记 ~
一、概述
Gestures are the second "G" in Gaze, Gesture, and Voice. Unity provides both low level access (raw position and velocity information) and a high level gesture recognizer that exposes more complex gesture events (for example: tap, double tap, hold, manipulation and navigation).
手势识别是Hololens 三大输入系统 Gaze焦点、Gesture手势 和 Voice声音 中的第二个G~(这句翻译的好像有点儿生硬了~)同时在Unity层面也提供了底层的API,例如原始位置速度位移信息等~ 当然,也提供了高维度封装好的供开发者调用的高层API~例如:手势单击,双击,长按,多点点击以及导航栏...(完全按照开发者的思维翻译的~)
官文可以得知~ HoloLens提供了高层次的和核心的API供开发者调用~
2
- Gesture Input
- Interaction Input
二、Gesture Input(高层次分装的API)
Namespace: UnityEngine.VR.WSA.Input
Types: GestureRecognizer, GestureSettings, InteractionSourceKind
These high level