Skip to content

Commit 9b8bc65

Browse files
committed
Move ReadProfile before base initialize
so settings are set before creating the observer
1 parent 0d660a2 commit 9b8bc65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MixedRealityToolkit/Providers/BaseSpatialMeshObserver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ protected virtual void ApplyUpdatedPhysicsLayer()
159159
public override void Initialize()
160160
{
161161
meshEventData = new MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>(EventSystem.current);
162-
163-
base.Initialize();
164162

165163
ReadProfile();
164+
165+
base.Initialize();
166166
}
167167

168168
#endregion IMixedRealityDataProvider Implementation

0 commit comments

Comments
 (0)