Skip to content

Instantly share code, notes, and snippets.

View sGambolati's full-sized avatar
:shipit:
Squirrel administrator

Sebastian Gambolati sGambolati

:shipit:
Squirrel administrator
View GitHub Profile
private void ScanStateChanged()
{
if (SpatialUnderstanding.Instance.ScanState == SpatialUnderstanding.ScanStates.Scanning)
{
LogSurfaceState();
}
else if (SpatialUnderstanding.Instance.ScanState == SpatialUnderstanding.ScanStates.Done)
{
InstanciateObjectOnFloor();
InstanciateObjectOnSurface();
@sGambolati
sGambolati / ScanManager.cs
Last active January 20, 2019 18:18
SpatialDemo's Final ScanManager.cs file.
using System;
using HoloToolkit.Unity;
using HoloToolkit.Unity.InputModule;
using UnityEngine;
public class ScanManager : MonoBehaviour, IInputClickHandler
{
public TextMesh InstructionTextMesh;
public Transform FloorPrefab;
public Transform WallPrefab;