Constructing a path 

In this section, we will implement the supporting methods that will be used to construct a path to show the user where a specific item is when requested. All of this will reside in the AssistantItemFinderMain class, so open this up in Visual Studio, if not already open, and let's get started.

As usual, we will start by declaring the necessary variables. Add the following to the AssistantItemFinderMain class:

private string requestedSightingTerm = string.Empty;private Node targetNode = null;private Sighting targetSighting = null;private Renderer targetNodeRenderer;

The variable requestedSightingTerm stores the item we are currently searching for, while targetNode and targetSighting will be the associated node and sighting ...

Get Microsoft HoloLens By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.