學(xué)習(xí)源于官方文檔 Gestures in Unity

筆記一部分是直接翻譯官方文檔,部分各人理解不一致的和一些比較淺顯的保留英文原文


(五)Hololens Unity 開發(fā)之 手勢識別

HoloLens 有三大輸入系統(tǒng),凝視點、手勢和聲音 ~ 本文主要記錄手勢識別的學(xué)習(xí)筆記 ~

一、概述

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 三大輸入系統(tǒng) Gaze焦點、Gesture手勢 和 Voice聲音 中的第二個G~(這句翻譯的好像有點兒生硬了~)同時在Unity層面也提供了底層的API,例如原始位置速度位移信息等~ 當然,也提供了高維度封裝好的供開發(fā)者調(diào)用的高層API~例如:手勢單擊,雙擊,長按,多點點擊以及導(dǎo)航欄...(完全按照開發(fā)者的思維翻譯的~)

官文可以得知~ HoloLens提供了高層次的和核心的API供開發(fā)者調(diào)用~
2

  • Gesture Input

  • Interaction Input


二、Gesture Input(高層次分裝的API)

Namespace: UnityEngine.VR.WSA.Input

Types: GestureRecognizer, GestureSettings, InteractionSourceKind

These high level gestures are generated by input sources. Each Gesture event provides the SourceKind for the input as well as the targeting head ray at the time of the event. Some events provide additional context specific information.

這是一些高層次的手勢源,每個手勢輸入都對應(yīng)了一個事件event~ 而每個事件都提供了SourceKind 手勢輸入員的類別 以及 在 頭部感應(yīng)器觸發(fā)事件的事件~ 而且一些事件來提供了額外的一些信息~

延伸閱讀

學(xué)習(xí)是年輕人改變自己的最好方式-Java培訓(xùn),做最負責(zé)任的教育,學(xué)習(xí)改變命運,軟件學(xué)習(xí),再就業(yè),大學(xué)生如何就業(yè),幫大學(xué)生找到好工作,lphotoshop培訓(xùn),電腦培訓(xùn),電腦維修培訓(xùn),移動軟件開發(fā)培訓(xùn),網(wǎng)站設(shè)計培訓(xùn),網(wǎng)站建設(shè)培訓(xùn)學(xué)習(xí)是年輕人改變自己的最好方式