Skip to content

Commit 747bb1f

Browse files
committed
Use ObservedObjectParent instead of observedObjectParent
1 parent 0ff88b0 commit 747bb1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/MRTK/Providers/Experimental/WindowsSceneUnderstanding/WindowsSceneUnderstandingObserver.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,13 +1321,13 @@ private Texture2D OcclusionTexture(byte[] textureBytes)
13211321
/// </summary>
13221322
private void CleanupInstantiatedSceneObjects()
13231323
{
1324-
if (observedObjectParent != null)
1324+
if (ObservedObjectParent != null)
13251325
{
1326-
int kidCount = observedObjectParent.transform.childCount;
1326+
int kidCount = ObservedObjectParent.transform.childCount;
13271327

13281328
for (int i = 0; i < kidCount; ++i)
13291329
{
1330-
UnityEngine.Object.Destroy(observedObjectParent.transform.GetChild(i).gameObject);
1330+
UnityEngine.Object.Destroy(ObservedObjectParent.transform.GetChild(i).gameObject);
13311331
}
13321332
}
13331333
}

0 commit comments

Comments
 (0)