Skip to content

Latest commit

 

History

History
 
 

Unity

The contents of this directory is:

  • Tutorials: several Unity projects demonstrating how to use Project Prague to integrate gestures into Unity games. Each of the following directories contains the final Unity project obtained in the corresponding tutorial:

    • Introduction - learn how to wire a gesture to an existing functionality in your scene. This tutorial introduces you to the GesturesManager, UIManager, GestureTrigger and CameraGesturesController prefabs.
    • 3D Object Manipulation - Scene Preparation - create a 3D cursor that can move objects in the scene. The cursor is controlled by the mouse, using existing Unity functionality.
    • 3D Object Manipulation - create a 3D cursor which is controlled by the hand, enabling you to use a gesture to "grab" an object and move it around in the scene.
  • Microsoft.Gestures.Toolkit.unitypackage - Project Prague's Unity toolkit package. Import this package to enable the use of gestures and hand-skeleton in your Unity project.

    List of prefabs contained in the toolkit, in alphabetical order:

    Name Purpose Usage Example
    CameraGesturesController Use a gesture to "grab" the main camera of the scene, allowing you to tumble and dolly the camera by moving your hand. Introduction tutorial - step 6
    GesturesManager A client for the Project Prague Gestures Service. Provides a scripting API for gestures and hand-skeleton. A single instance of this prefab is mandatory in every gesture-enabled Unity project. Introduction tutorial - step 2
    GestureTrigger Allows you to specify a gesture and link it to some functionality in your scene. Introduction tutorial - step 4
    HandCursor A 2D cursor, based on the projection of your palm center to the screen.
    SkeletonVisualizer A visualization illustrating the hand-skeleton in real-time.
    UIManager A UI manager for the GesturesManager, displaying information about the state of the connection to the Gestures Service and providing a basic debugging log. Introduction tutorial - step 2