We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 455e633 commit 78e656bCopy full SHA for 78e656b
Assets/HoloToolkit/SpatialUnderstanding/Scripts/SpatialUnderstanding.cs
@@ -36,6 +36,9 @@ public enum ScanStates
36
[Tooltip("Update period used after the scanning process is completed")]
37
public float UpdatePeriod_AfterScanning = 4.0f;
38
39
+ public event OnScanDoneDelegate OnScanDone;
40
+ public delegate void OnScanDoneDelegate();
41
+
42
// Properties
43
/// <summary>
44
/// Switch used by the entire SpatialUnderstanding module to activate processing.
@@ -256,6 +259,7 @@ private void Update_Scan(float deltaTime)
256
259
257
260
// Mark it
258
261
ScanState = ScanStates.Done;
262
+ OnScanDone.Invoke();
263
}
264
265
0 commit comments