docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XROcclusionSubsystem

    Defines an interface for interacting with occlusion functionality.

    Inheritance
    object
    SubsystemWithProvider
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>
    XROcclusionSubsystem
    Implements
    ISubsystem
    Inherited Members
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.OnCreate()
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.OnStart()
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.OnStop()
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.OnDestroy()
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.subsystemDescriptor
    SubsystemWithProvider<XROcclusionSubsystem, XROcclusionSubsystemDescriptor, XROcclusionSubsystem.Provider>.provider
    SubsystemWithProvider.Start()
    SubsystemWithProvider.OnStart()
    SubsystemWithProvider.Stop()
    SubsystemWithProvider.OnStop()
    SubsystemWithProvider.Destroy()
    SubsystemWithProvider.OnDestroy()
    SubsystemWithProvider.running
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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.

    In This Article
    Back to top
    Copyright © 2024 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)