docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetaOpenXROcclusionSubsystem

    The OpenXR Meta implementation of XROcclusionSubsystem.

    Inheritance
    object
    SubsystemWithProvider
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>
    XROcclusionSubsystem
    MetaOpenXROcclusionSubsystem
    Implements
    ISubsystem
    Inherited Members
    XROcclusionSubsystem.TryGetSwapchainTextureDescriptors(out NativeArray<NativeArray<XRTextureDescriptor>>)
    XROcclusionSubsystem.TryGetHumanStencil(out XRTextureDescriptor)
    XROcclusionSubsystem.TryAcquireHumanStencilCpuImage(out XRCpuImage)
    XROcclusionSubsystem.TryGetHumanDepth(out XRTextureDescriptor)
    XROcclusionSubsystem.TryAcquireHumanDepthCpuImage(out XRCpuImage)
    XROcclusionSubsystem.TryGetEnvironmentDepth(out XRTextureDescriptor)
    XROcclusionSubsystem.TryAcquireEnvironmentDepthCpuImage(out XRCpuImage)
    XROcclusionSubsystem.TryAcquireRawEnvironmentDepthCpuImage(out XRCpuImage)
    XROcclusionSubsystem.TryAcquireSmoothedEnvironmentDepthCpuImage(out XRCpuImage)
    XROcclusionSubsystem.TryGetEnvironmentDepthConfidence(out XRTextureDescriptor)
    XROcclusionSubsystem.TryAcquireEnvironmentDepthConfidenceCpuImage(out XRCpuImage)
    XROcclusionSubsystem.GetTextureDescriptors(Allocator)
    XROcclusionSubsystem.TryGetFrame(Allocator, out XROcclusionFrame)
    XROcclusionSubsystem.GetMaterialKeywords(out List<string>, out List<string>)
    XROcclusionSubsystem.GetShaderKeywords()
    XROcclusionSubsystem.GetShaderKeywords2()
    XROcclusionSubsystem.Register(XROcclusionSubsystemCinfo)
    XROcclusionSubsystem.requestedHumanStencilMode
    XROcclusionSubsystem.currentHumanStencilMode
    XROcclusionSubsystem.requestedHumanDepthMode
    XROcclusionSubsystem.currentHumanDepthMode
    XROcclusionSubsystem.requestedEnvironmentDepthMode
    XROcclusionSubsystem.currentEnvironmentDepthMode
    XROcclusionSubsystem.environmentDepthTemporalSmoothingRequested
    XROcclusionSubsystem.environmentDepthTemporalSmoothingEnabled
    XROcclusionSubsystem.requestedOcclusionPreferenceMode
    XROcclusionSubsystem.currentOcclusionPreferenceMode
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.subsystemDescriptor
    SubsystemWithProvider.Start()
    SubsystemWithProvider.Stop()
    SubsystemWithProvider.Destroy()
    SubsystemWithProvider.running
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.OpenXR.Features.Meta
    Assembly: Unity.XR.MetaOpenXR.dll
    Syntax
    [Preserve]
    public sealed class MetaOpenXROcclusionSubsystem : XROcclusionSubsystem, ISubsystem

    Properties

    isHandRemovalEnabled

    Get whether hand removal is currently enabled.

    Declaration
    public bool isHandRemovalEnabled { get; }
    Property Value
    Type Description
    bool
    Remarks

    This value is always false while the subsystem is not yet running.

    isHandRemovalSupported

    Get whether hand removal is supported by the OpenXR runtime.

    Declaration
    public Supported isHandRemovalSupported { get; }
    Property Value
    Type Description
    Supported
    • Unknown if the OpenXR instance has not yet been created.
    • Unsupported if hand removal is not supported.
    • Supported if hand removal is supported.

    Methods

    TrySetHandRemovalEnabled(bool)

    Attempts to set whether hand removal is enabled. Enable hand removal if your project uses a separate occlusion method for hands.

    Declaration
    public XrResult TrySetHandRemovalEnabled(bool enableHandRemoval)
    Parameters
    Type Name Description
    bool enableHandRemoval

    Indicates whether to enable hand removal.

    Returns
    Type Description
    XrResult
    • Success if setting hand removal succeeded with no qualifications.
    • FeatureUnsupported if the device does not support hand removal.
    • Otherwise, read the result value for more information.

    Implements

    ISubsystem
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)