// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.CameraSystem; using Microsoft.MixedReality.Toolkit.Utilities; #if UNITY_WSA using UnityEngine.XR.WSA; #endif // UNITY_WSA namespace Microsoft.MixedReality.Toolkit.WindowsMixedReality { /// /// Camera settings provider for use with Windows Mixed Reality. /// [MixedRealityDataProvider( typeof(IMixedRealityCameraSystem), SupportedPlatforms.WindowsUniversal, "Windows Mixed Reality Camera Settings", "WindowsMixedReality/Shared/Profiles/DefaultWindowsMixedRealityCameraSettingsProfile.asset", "MixedRealityToolkit.Providers", supportedUnityXRPipelines: SupportedUnityXRPipelines.LegacyXR)] public class WindowsMixedRealityCameraSettings : BaseWindowsMixedRealityCameraSettings { /// /// Constructor. /// /// The instance of the camera system which is managing this provider. /// Friendly name of the provider. /// Provider priority. Used to determine order of instantiation. /// The provider's configuration profile. public WindowsMixedRealityCameraSettings( IMixedRealityCameraSystem cameraSystem, string name = null, uint priority = DefaultPriority, BaseCameraSettingsProfile profile = null) : base(cameraSystem, name, priority, profile) { } #region IMixedRealityCameraSettings /// public override bool IsOpaque => #if UNITY_WSA HolographicSettings.IsDisplayOpaque; #else false; #endif #endregion IMixedRealityCameraSettings } }