Created
May 4, 2017 01:09
-
-
Save CameronVetter/2058cde61e8567982a886be43d56e35e to your computer and use it in GitHub Desktop.
Version 1 - enable and disable the spatial mesh visualization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HoloToolkit.Unity; | |
using UnityEngine; | |
public class Speech : MonoBehaviour | |
{ | |
public SpatialUnderstandingCustomMesh SpatialUnderstandingMesh; | |
public void ToggleMesh() | |
{ | |
SpatialUnderstandingMesh.DrawProcessedMesh = !SpatialUnderstandingMesh.DrawProcessedMesh; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment