July 2017
Beginner to intermediate
390 pages
10h 53m
English
There is one final thing we need to do. We need to call Play() so we can actually hear it.
For this app, I decided to abuse our old friend the Update method again. You know, the code that makes the cube you see reappear at the place you air-tap.
So, in the main class, which in my case is still VoiceInHolographicDirectXMain, find the Update method and look for that part in the compiler directives #if DRAW_SAMPLE_CONTENT. We will add the code here:
#if DRAW_SAMPLE_CONTENT // Check for new input state since the last frame. var pointerState = spatialInputHandler.CheckForInput();if (null != pointerState){ // When a Pressed gesture is detected, //the sample hologram will be repositioned // two meters in front of ...Read now
Unlock full access