Skip to content

IMixedRealitySpatialAwarenessSystem.GetObservers<>() returns the base type, rather than the templated type #3420

@Ecnassianer

Description

@Ecnassianer

Overview

I've templated GetObservers() to IMixedRealitySpatialAwarenessMeshObservers, but it returns IMixedRealitySpatialAwarenessObservers rather than the templeted type.
image

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]

Unity Editor Version

Mixed Reality Toolkit Release Version

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions