Skip to content

Commit fe93363

Browse files
make markers if the boundary manager is already initialized
1 parent e722013 commit fe93363

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Assets/MixedRealityToolkit-Examples/Demos/Boundary/Scripts/BoundaryIndicatorDemo.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ private void OnEnable()
2828
BoundaryManager.Register(gameObject);
2929
}
3030

31+
private void Start()
32+
{
33+
if (BoundaryManager != null && BoundaryManager.EnablePlatformBoundaryRendering)
34+
{
35+
if (markers.Count == 0)
36+
{
37+
AddIndicators();
38+
}
39+
}
40+
}
41+
3142
private void OnDisable()
3243
{
3344
BoundaryManager.Unregister(gameObject);

0 commit comments

Comments
 (0)