Mixedrealitytoolkit-unity: CheckCapability(MixedRealityCapability.SpatialAwarenessMesh) always return false on HoloLens 1

Created on 17 Nov 2019  路  4Comments  路  Source: microsoft/MixedRealityToolkit-Unity

Describe the bug

WindowsMixedRealitySpatialMeshObserver.CheckCapability(MixedRealityCapability.SpatialAwarenessMesh) always return false on HoloLens1

cause is capability check runs on UniversalApiContract v8 environment only.
Hololens 1 is UniversalApiContract v7.

https://github.com/microsoft/MixedRealityToolkit-Unity/blob/2c711ab4d9f059fa0b12761a10188a051c7785b4/Assets/MixedRealityToolkit.Providers/WindowsMixedReality/WindowsMixedRealitySpatialMeshObserver.cs#L88

if change UniversalApiContractV8_IsAvailable to UniversalApiContractV7_IsAvailable above source, runs fine on HoloLens 1.

but I'm not sure that is currrectly..

Environment

  • Unity Version [2019.2.12f1]
  • MRTK Version [v2.1.0]

Target Platform

  • HoloLens
Bug Consider for Next Iteration Spatial Mapping / Awareness

Most helpful comment

This is a code defect, marking consider for next and putting in 2.3

All 4 comments

@keveleigh FYI who has good knowledge in this area

This is a code defect, marking consider for next and putting in 2.3

Great find @satoshi-maemoto!

fixed in 2.3.0 (current the mrtk_development branch) by #6884.

Was this page helpful?
0 / 5 - 0 ratings