Keeping the user informed
Within the Editor, search for the CursorWithFeedback
prefab in the Project
panel's search bar. Once found, drag onto the Hierarchy
panel. This almost takes care of the cursor. We just need to add two dependencies, namely, GazeManager
and HandManager
. Create a new GameObject via the menu GameObject | Create Empty
and rename to Gaze
; this will be the GameObject we attach these components to. With the Gaze
GameObject selected, click on the Add Component
button from within the Inspector
panel, enter, and select the GazeManager
script. The GazeManager
, as the name implies, provides information about the user's gaze, including the direction and position. Next, still with the Gaze
GameObject, selected, click on the Add Component
button from within the Inspector
panel, enter, and select the script HandManager
. The HandManager
script tracks the hands, and when in view broadcast the event HandInView
along with maintaining the state, such as the number of hands currently in...