playMaker

Author Topic: How to build an action OnInputClicked from holotoolkit  (Read 1373 times)

XL2c

  • Playmaker Newbie
  • *
  • Posts: 2
How to build an action OnInputClicked from holotoolkit
« on: November 12, 2017, 06:55:39 AM »
Hello everyone,

I am new to unity and to C# coding in general, i did several very simple demo apps for the hololens, and wanted to step up a bit on the interactions. That's where i thought playmaker could be handy.
Unfortunately it did not, i cannot find a way to add an action that responds to the OnInputClicked method (i hope i'm using the right term here) which is basically an "air-tap".

I tried to install the mixedreality playmaker addon found on the assets store, but the gesture recognizer seems to be using old outdated methods from an old holotoolkit version. I'm using the latest holotoolkit and the latest unity version (2017.2.0f3)

This is the details of the method used to detect an air-tap by the holotoolkit inputhandler, any idea on how i could build an action out of this?

Code: [Select]
   
namespace HoloToolkit.Unity.InputModule
{
   public class TapResponder : MonoBehaviour, IInputClickHandler
    {
        public void OnInputClicked(InputClickedEventData eventData)
        {
           //do stuff here
         }
    }
}

I tried searching the forum of course, but did not find anything usefull, i figured maybe someone has figured something out.

Cheers