Skip to content

Commit 78e656b

Browse files
committed
Added event when scan is done to SpatialUnderstanding
1 parent 455e633 commit 78e656b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/HoloToolkit/SpatialUnderstanding/Scripts/SpatialUnderstanding.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public enum ScanStates
3636
[Tooltip("Update period used after the scanning process is completed")]
3737
public float UpdatePeriod_AfterScanning = 4.0f;
3838

39+
public event OnScanDoneDelegate OnScanDone;
40+
public delegate void OnScanDoneDelegate();
41+
3942
// Properties
4043
/// <summary>
4144
/// Switch used by the entire SpatialUnderstanding module to activate processing.
@@ -256,6 +259,7 @@ private void Update_Scan(float deltaTime)
256259

257260
// Mark it
258261
ScanState = ScanStates.Done;
262+
OnScanDone.Invoke();
259263
}
260264
}
261265
}

0 commit comments

Comments
 (0)