SpatialMappingObserver does not rescan (in PlayspaceManager) when starting a 2nd game from StartingMenu scene
Closed this issue · 1 comments
reedv commented
SpatialMappingObserver does not rescan (in PlayspaceManager) when starting a 2nd game from StartingMenu scene
reedv commented
PlayspaceManager was measuring if it was within the duration for its scanTime using the line:
(Time.time - SpatialMappingManager.Instance.StartTime) < scanTime)
Changed this to:
(Time.timeSinceLevelLoad - SpatialMappingManager.Instance.StartTime) < scanTime)
since Time.time continues counting as long as the unity app is active (rather than how long the current scene has been active).