CoreServices Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Utility class to easily access references to core runtime Mixed Reality Toolkit Services If deallocating and re-allocating a new system at runtime, ResetCacheReferences() should be used to get a proper reference
public ref class CoreServices abstract sealed
public static class CoreServices
type CoreServices = class
Public Class CoreServices
- Inheritance
-
CoreServices
Properties
BoundarySystem |
Cached reference to the active instance of the boundary system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
CameraSystem |
Cached reference to the active instance of the camera system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
DiagnosticsSystem |
Cached reference to the active instance of the diagnostics system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
FocusProvider |
Cached reference to the active instance of the focus provider. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
InputSystem |
Cached reference to the active instance of the input system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
RaycastProvider |
Cached reference to the active instance of the raycast provider. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
SceneSystem |
Cached reference to the active instance of the scene system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
SpatialAwarenessSystem |
Cached reference to the active instance of the spatial awareness system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
TeleportSystem |
Cached reference to the active instance of the teleport system. If system is destroyed, reference will be invalid. Please use ResetCacheReferences() |
Methods
GetCameraSystemDataProvider<T>() |
Gets first matching IMixedRealityCameraSettingsProvider or extension thereof for CoreServices.CameraSystem |
GetDataProvider<T>(IMixedRealityService) |
Gets first matching data provider of provided type T registered to the provided mixed reality service. |
GetInputSystemDataProvider<T>() |
Gets first matching IMixedRealityInputDeviceManager or extension thereof for CoreServices.InputSystem |
GetSpatialAwarenessSystemDataProvider<T>() |
Gets first matching IMixedRealitySpatialAwarenessObserver or extension thereof for CoreServices.SpatialAwarenessSystem |
ResetCacheReference(Type) |
Clears the cache of the reference with key of given type if present and applicable |
ResetCacheReferences() |
Resets all cached system references to null |