Skip to content

Commit 4916ee2

Browse files
author
davidkline-ms
committed
more pr feedback
1 parent a2b9106 commit 4916ee2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/MRTK/Core/Providers/BaseSpatialObserver.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ protected BaseSpatialObserver(
4141
protected IMixedRealitySpatialAwarenessSystem SpatialAwarenessSystem => Service;
4242

4343
private GameObject observedObjectParent = null;
44+
protected virtual GameObject ObservedObjectParent => observedObjectParent != null ? observedObjectParent : (observedObjectParent = Service?.CreateSpatialAwarenessObservationParent(Name));
4445

4546
/// <summary>
4647
/// The parent GameObject for all observed meshes to be placed under.
4748
/// </summary>
48-
public virtual GameObject ObservedObjectParent => observedObjectParent != null ? observedObjectParent : (observedObjectParent = Service?.CreateSpatialAwarenessObservationParent(Name));
49+
public GameObject ObservationParent => ObservedObjectParent;
4950

5051
/// <summary>
5152
/// Creates the spatial observer and handles the desired startup behavior.

0 commit comments

Comments
 (0)