Class XROcclusionSubsystem
Defines an interface for interacting with occlusion functionality.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XROcclusionSubsystem : SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>, ISubsystem
Constructors
| Name | Description |
|---|---|
| XROcclusionSubsystem() | Construct the subsystem by creating the functionality provider. |
Properties
| Name | Description |
|---|---|
| currentEnvironmentDepthMode | Get the environment depth mode currently in use by the provider. |
| currentHumanDepthMode | Get the human segmentation depth mode currently in use by the provider. |
| currentHumanStencilMode | Get the current segmentation stencil mode in use by the subsystem. |
| currentOcclusionPreferenceMode | Get the occlusion preference mode currently in use by the provider. |
| environmentDepthTemporalSmoothingEnabled | Whether temporal smoothing is applied to the environment depth image. Query for support with environmentDepthTemporalSmoothingSupported. |
| environmentDepthTemporalSmoothingRequested | Whether temporal smoothing should be applied to the environment depth image. Query for support with environmentDepthTemporalSmoothingSupported. |
| requestedEnvironmentDepthMode | Specifies the environment depth mode. |
| requestedHumanDepthMode | Specifies the human segmentation depth mode. |
| requestedHumanStencilMode | Specifies the human segmentation stencil mode. |
| requestedOcclusionPreferenceMode | Specifies the requested occlusion preference mode. |
Methods
| Name | Description |
|---|---|
| GetMaterialKeywords(out List<string>, out List<string>) | Get the enabled and disabled shader keywords for the material. |
| GetTextureDescriptors(Allocator) | Gets the occlusion texture descriptors associated with the current AR frame. |
| Register(XROcclusionSubsystemCinfo) | Register the descriptor for the occlusion subsystem implementation. |
| TryAcquireEnvironmentDepthConfidenceCpuImage(out XRCpuImage) | Tries to acquire the latest environment depth confidence CPU image. |
| TryAcquireEnvironmentDepthCpuImage(out XRCpuImage) | Tries to acquire the latest environment depth CPU image. |
| TryAcquireHumanDepthCpuImage(out XRCpuImage) | Tries to acquire the latest human depth CPU image. |
| TryAcquireHumanStencilCpuImage(out XRCpuImage) | Tries to acquire the latest human stencil CPU image. |
| TryAcquireRawEnvironmentDepthCpuImage(out XRCpuImage) | Tries to acquire the latest raw environment depth CPU image. |
| TryAcquireSmoothedEnvironmentDepthCpuImage(out XRCpuImage) | Tries to acquire the latest smoothed environment depth CPU image. |
| TryGetEnvironmentDepth(out XRTextureDescriptor) | Gets the environment depth texture descriptor. |
| TryGetEnvironmentDepthConfidence(out XRTextureDescriptor) | Gets the environment depth confidence texture descriptor. |
| TryGetHumanDepth(out XRTextureDescriptor) | Gets the human depth texture descriptor. |
| TryGetHumanStencil(out XRTextureDescriptor) | Gets the human stencil texture descriptor. |