4 using System.Collections.Generic;
15 [Tooltip(
"How much time (in seconds) that the SurfaceObserver will run after being started; used when 'Limit Scanning By Time' is checked.")]
16 public float scanTime = 30.0f;
18 [Tooltip(
"Material to use when rendering Spatial Mapping meshes while the observer is running.")]
21 [Tooltip(
"Optional Material to use when rendering Spatial Mapping meshes after the observer has been stopped.")]
24 [Tooltip(
"Minimum number of floor planes required in order to exit scanning/processing mode.")]
25 public uint minimumFloors = 1;
30 private bool meshesProcessed =
false;
74 meshesProcessed =
true;
84 private void SurfaceMeshesToPlanes_MakePlanesComplete(
object source,
System.EventArgs args)
87 List<GameObject> floors =
new List<GameObject>();
91 if (floors.Count >= minimumFloors)
106 meshesProcessed =
false;
113 private void CreatePlanes()
117 if (surfaceToPlanes != null && surfaceToPlanes.enabled)
127 private void RemoveVertices(IEnumerable<GameObject> boundingObjects)
130 if (removeVerts != null && removeVerts.enabled)