Scripts and prefabs to allow custom gesture detection via Mixed Reality Toolkit (MRTK) in Unity
Table of Contents
This repository allows you to use custom gestures to trigger events using Microsoft Mixed Reality Toolkit (MRTK). It utilises the inbuild MRTK implementation of Hand Tracking via IMixedRealityHandPose to detect positions of joints to a custom gesture. To see how you can use it in your own project, see here.
Inspired by Oculus Custom Hand Pose tutorial by Valem
You will need to download and install the following:
To use the custom hand gestures in your own projects, its as simple as using the GestureDetectorGlobal.cs script onto a gameObject in a scene in your project. Find out more including how to setup your own custom gestures here.
- Clone the repo
git clone git@github.com:septianrazi/MRTK-Custom-Gestures-Unity.git
- Open Project in Unity (2020 above recommended)
- Change build setttings depending on intended hardware (Android for Oculus, Universal Windows Platform for Hololens)
- Edit the project and include your own custom gestures
- Build and Run the project on your device
Custom Gestures on the Hololens:
Custom Gestures on the Oculus:
Both examples above use three different hand gestures on either the right or left hand that will cause a sphere object to spawn and track to the users hand. The gestures include: THUMBS UP, FINGER GUN, SPIDERMAN, AND TWO.
Hand Gestures trigger the special moves in Naruto In Mixed Reality
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
-
Choose an Issue you want to work on and assign yourself
If there is no exsiting issue, please submit one
-
Fork the Project
-
Create your Feature Branch (
git checkout -b feature/AmazingFeature
) -
Commit your Changes (
git commit -m 'Add some AmazingFeature'
) -
Push to the Branch (
git push origin feature/AmazingFeature
) -
Open a Pull Request linking the issue
Distributed under the MIT License. See LICENSE
for more information.
Septian Razi - septianrazi.github.io - raziseptian@gmail.com
Project Link: https://github.com/septianrazi/MRTK-Custom-Gestures-Unity