Skip to content

Commit df56c90

Browse files
committed
Updating Boundary script
1 parent 57a1891 commit df56c90

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Assets/HoloToolkit/Boundary/Scripts/BoundaryManager.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ private void RenderFloorQuad()
104104
if (FloorQuad != null && HolographicSettings.IsDisplayOpaque)
105105
{
106106
floorQuadInstance = Instantiate(FloorQuad);
107-
floorQuadInstance.transform.SetParent(gameObject.transform.parent);
108107

109108
#if UNITY_EDITOR
110109
// So the floor quad does not occlude in editor testing, draw it lower.
@@ -115,14 +114,14 @@ private void RenderFloorQuad()
115114
// TODO: BUG: Unity: TryGetDimensions does not return true either.
116115
//if (UnityEngine.Experimental.XR.Boundary.TryGetDimensions(out dimensions,
117116
//UnityEngine.Experimental.XR.Boundary.Type.TrackedArea))
118-
if (UnityEngine.Experimental.XR.Boundary.TryGetDimensions(out dimensions,
117+
if (UnityEngine.Experimental.XR.Boundary.TryGetDimensions(out dimensions,
119118
UnityEngine.Experimental.XR.Boundary.Type.TrackedArea))
120119
{
121120
Debug.Log("Got dimensions of tracked area.");
122121
if (dimensions != null)
123122
{
124123
Debug.Log("Drawing floor at dimensions Y.");
125-
// Draw the floor at boundary Y.
124+
// Draw the floor at boundary Y.
126125
floorQuadInstance.transform.localPosition = new Vector3(0, dimensions.y, 0);
127126
}
128127
}
@@ -131,7 +130,7 @@ private void RenderFloorQuad()
131130
Debug.Log("Drawing floor at 0,0,0.");
132131
// Draw the floor at 0,0,0.
133132
floorQuadInstance.transform.localPosition = Vector3.zero;
134-
}
133+
}
135134
#endif
136135
floorQuadInstance.SetActive(true);
137136
}

0 commit comments

Comments
 (0)