@@ -318,7 +318,7 @@ public void SaveScene(string filenamePrefix)
318
318
public void UpdateOnDemand ( )
319
319
{
320
320
#if SCENE_UNDERSTANDING_PRESENT
321
- if ( ! MixedRealityToolkit . Instance . ActiveProfile . IsSpatialAwarenessSystemEnabled || ( SpatialAwarenessSystem == null ) )
321
+ if ( ! MixedRealityToolkit . Instance . ActiveProfile . IsSpatialAwarenessSystemEnabled || ( Service == null ) )
322
322
{
323
323
return ;
324
324
}
@@ -369,7 +369,7 @@ public TextAsset SerializedScene
369
369
#if SCENE_UNDERSTANDING_PRESENT
370
370
371
371
#region Other Property
372
- protected virtual GameObject ObservedObjectParent => observedObjectParent != null ? observedObjectParent : ( observedObjectParent = SpatialAwarenessSystem ? . CreateSpatialAwarenessObservationParent ( "WindowsMixedRealitySceneUnderstandingObserver" ) ) ;
372
+ protected virtual GameObject ObservedObjectParent => observedObjectParent != null ? observedObjectParent : ( observedObjectParent = Service ? . CreateSpatialAwarenessObservationParent ( "WindowsMixedRealitySceneUnderstandingObserver" ) ) ;
373
373
#endregion Other Property
374
374
375
375
#region Private Fields
@@ -520,7 +520,7 @@ public bool TryFindCentermostPlacement(
520
520
protected virtual void SendSceneObjectAdded ( SpatialAwarenessSceneObject sceneObj , int id )
521
521
{
522
522
sceneEventData . Initialize ( this , id , sceneObj ) ;
523
- SpatialAwarenessSystem ? . HandleEvent ( sceneEventData , OnSceneObjectAdded ) ;
523
+ Service ? . HandleEvent ( sceneEventData , OnSceneObjectAdded ) ;
524
524
}
525
525
526
526
/// <summary>
@@ -531,7 +531,7 @@ protected virtual void SendSceneObjectAdded(SpatialAwarenessSceneObject sceneObj
531
531
protected virtual void SendSceneObjectUpdated ( SpatialAwarenessSceneObject sceneObj , int id )
532
532
{
533
533
sceneEventData . Initialize ( this , id , sceneObj ) ;
534
- SpatialAwarenessSystem ? . HandleEvent ( sceneEventData , OnSceneObjectUpdated ) ;
534
+ Service ? . HandleEvent ( sceneEventData , OnSceneObjectUpdated ) ;
535
535
}
536
536
537
537
/// <summary>
@@ -541,7 +541,7 @@ protected virtual void SendSceneObjectUpdated(SpatialAwarenessSceneObject sceneO
541
541
protected virtual void SendSceneObjectRemoved ( int id )
542
542
{
543
543
sceneEventData . Initialize ( this , id , null ) ;
544
- SpatialAwarenessSystem ? . HandleEvent ( sceneEventData , OnSceneObjectRemoved ) ;
544
+ Service ? . HandleEvent ( sceneEventData , OnSceneObjectRemoved ) ;
545
545
}
546
546
547
547
private async Task < SceneObserverAccessStatus > RequestAccess ( )
@@ -900,9 +900,8 @@ private SpatialAwarenessSceneObject ConvertSceneObject(SceneObject sceneObject)
900
900
901
901
System . Numerics . Vector3 worldTranslationSystem ;
902
902
System . Numerics . Quaternion worldRotationSystem ;
903
- System . Numerics . Vector3 localScale ;
904
903
905
- System . Numerics . Matrix4x4 . Decompose ( worldTransformMatrix , out localScale , out worldRotationSystem , out worldTranslationSystem ) ;
904
+ System . Numerics . Matrix4x4 . Decompose ( worldTransformMatrix , out _ , out worldRotationSystem , out worldTranslationSystem ) ;
906
905
907
906
int hashedId = sceneObject . Id . GetHashCode ( ) ;
908
907
var result = SpatialAwarenessSceneObject . Create (
0 commit comments