Class XRCameraSubsystemDescriptor
Specifies the functionalities supported by a provider of the XRCameraXRCameraSubsystem.Provider
and may override virtual class members.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine .XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public sealed class XRCameraSubsystemDescriptor : SubsystemDescriptorWithProvider<XRCameraSubsystem, XRCameraSubsystem.Provider>, ISubsystemDescriptor
Properties
supportsAverageBrightness
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsAverageBrightness { get; }
Property Value
supportsAverageColorTemperature
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsAverageColorTemperature { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation can provide average camera temperature. Otherwise, false. |
supportsAverageIntensityInLumens
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsAverageIntensityInLumens { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation can provide average intensity in lumens. Otherwise, false. |
supportsCameraConfigurations
Indicates whether the provider implementation supports camera configurations.
If false, the get
accessor for
XRCameraset
accessor must throw a Not
Declaration
public bool supportsCameraConfigurations { get; }
Property Value
supportsCameraGrain
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsCameraGrain { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation can provide a camera grain texture. Otherwise, false. |
supportsCameraImage
Indicates whether the provider implementation can provide camera images.
If false,
XRCamera
Declaration
public bool supportsCameraImage { get; }
Property Value
supportsColorCorrection
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsColorCorrection { get; }
Property Value
supportsDisplayMatrix
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsDisplayMatrix { get; }
Property Value
supportsExifData
Indicates whether the provider implementation supports EXIF data.
Declaration
public bool supportsExifData { get; }
Property Value
supportsFaceTrackingAmbientIntensityLightEstimation
Indicates whether the provider implementation supports ambient intensity light estimation while face
tracking is enabled.
If false, XRCamera
Declaration
public bool supportsFaceTrackingAmbientIntensityLightEstimation { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation supports ambient intensity while face tracking is enabled. Otherwise, false. |
supportsFaceTrackingHDRLightEstimation
Indicates whether the provider implementation supports HDR light estimation while face tracking is enabled.
Declaration
public bool supportsFaceTrackingHDRLightEstimation { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation supports HDR light estimation while face tracking is enabled. Otherwise, false. |
supportsFocusModes
Indicates whether the provider implementation supports the ability to set the camera's focus mode.
If false, the set
accessor for
XRCamera
Declaration
public bool supportsFocusModes { get; }
Property Value
supportsImageStabilization
Indicates whether the provider implementation supports the ability to set the camera's
Image Stabilization mode. The supported status might take time to determine. If the method
delegate returns Unsupported, the set
accessor for
XRCamera
Declaration
public Supported supportsImageStabilization { get; }
Property Value
Type | Description |
---|---|
Supported | Supported if the implementation supports Image Stabilization modes, Unknown if support is still being determined. Otherwise, Unsupported. |
supportsProjectionMatrix
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsProjectionMatrix { get; }
Property Value
supportsTimestamp
Indicates whether the provider implementation can provide a value for
XRCamera
Declaration
public bool supportsTimestamp { get; }
Property Value
supportsWorldTrackingAmbientIntensityLightEstimation
Indicates whether the provider implementation supports ambient intensity light estimation while world tracking.
If false, XRCamera
Declaration
public bool supportsWorldTrackingAmbientIntensityLightEstimation { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation supports ambient intensity while world tracking. Otherwise, false. |
supportsWorldTrackingHDRLightEstimation
Indicates whether the provider implementation supports HDR light estimation while world tracking.
Declaration
public bool supportsWorldTrackingHDRLightEstimation { get; }
Property Value
Type | Description |
---|---|
bool | true if the implementation supports HDR light estimation while world tracking. Otherwise, false. |
Methods
Register(Cinfo)
Registers a camera subsystem implementation based on the given subsystem parametersㄝ and validates that the
id and provider
Declaration
public static void Register(XRCameraSubsystemDescriptor.Cinfo cinfo)
Parameters
Type | Name | Description |
---|---|---|
XRCamera |
cinfo | The parameters that define how to initialize the descriptor. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown when the values specified in the
XRCamera |