You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've templated GetObservers() to IMixedRealitySpatialAwarenessMeshObservers, but it returns IMixedRealitySpatialAwarenessObservers rather than the templeted type.
Expected Behavior
Templted Get functions return the templted type, rather than a base type
Actual Behavior
GetObservers returns something that I don't expect and I need to cast it every time I use it.
Steps to reproduce
Put this in and note the compile error:
IMixedRealitySpatialAwarenessMeshObserver observer = MixedRealityToolkit.SpatialAwarenessSystem.GetObservers()[0]