/PlayerMakerWindowsMixedReality

PlayMaker extensions for Windows Mixed Reality

Primary LanguageC#MIT LicenseMIT

Mixed Reality Add-ons for PlayMaker

Create HoloLens applications without coding. These add-ons for PlayMaker provide actions you can use in your PlayMaker state machines that control and interact with the HoloLens (and other Mixed Reality headsets) from within Unity.

PlayMaker is required and must be purchased seperately.

Getting Started

If you're new to PlayMaker, try the tutorials section.

Download the PlayMaker Windows Mixed Reality Unity Package, double-click or drag it into your Unity project to import the action and examples.

Import the globals from the Mixed Reality package by clicking on the PlayMaker->Tools->Import Package menu items. Then select PlayMakerGlobals.unitypackage from the the PlayMakerMixedReality folder.

Open up some of the example scenes and either run them using HoloGraphic Emulation with Unity or build and deploy to the device.

Check out the available actions below and start creating :)

Actions

  • AttachOrLoadWorldAnchor: Loads a WorldAnchor from the WorldAnchorStore or attaches and saves a new WorldAnchor.
  • RemoveWorldAnchor: Removes a WorldAnchor from the WorldAnchorStore.
  • CheckForHoloLensGesture: This state waits till it detects a gesture from the GestureRecognizer and then fires a PlayMaker event to respond to the event.
  • CheckForHoloLensVoiceCommand: This state waits till it detects a voice command from the KeywordRecognizer and then fires a PlayMaker event to respond to the event.
  • GazeSelection: Casts a ray from the headset into the world. Sends enter, exit and stay events for the GameObjects being gazed on.
  • ShowSpatialMappingRenderer: Controls the SpatialMappingRenderer.

Examples

You can find example scenes in the PlayMaker Windows Mixed Reality Examples" folder. Either run in the emulator on the on the device.

  • AirTap: Demonstrates how to respond to an AirTap. This exmaple adds a RigidBody to any GameObject being gazed at while air-tapping.
  • GazeCursor: Demonstrates how to implement a cursor that follows the gaze.
  • SpatialRendering: Demonstrates how to hide and show the spatial renderer. Use an air-tap to toggle visibility.
  • VoiceCommands: Demonstrates how to implement voice commands. Say "Make Physical" make all GameObject props non-kinematic and "Reset World" to reset their positions and make them kinematic again.