docs.unity3d.com
    Show / Hide Table of Contents

    Class ARCoreCameraSubsystem

    The ARCore implementation of the XRCameraSubsystem. Do not create this directly. Use the SubsystemManager instead.

    Inheritance
    Object
    XRSubsystem<XRCameraSubsystemDescriptor>
    XRCameraSubsystem
    ARCoreCameraSubsystem
    Inherited Members
    XRCameraSubsystem.OnStart()
    XRCameraSubsystem.OnStop()
    XRCameraSubsystem.OnDestroyed()
    XRCameraSubsystem.GetTextureDescriptors(Allocator)
    XRCameraSubsystem.OnBeforeBackgroundRender(Int32)
    XRCameraSubsystem.TryGetIntrinsics(XRCameraIntrinsics)
    XRCameraSubsystem.GetConfigurations(Allocator)
    XRCameraSubsystem.TryGetLatestFrame(XRCameraParams, XRCameraFrame)
    XRCameraSubsystem.GetMaterialKeywords(List<String>, List<String>)
    XRCameraSubsystem.TryGetLatestImage(XRCpuImage)
    XRCameraSubsystem.TryAcquireLatestCpuImage(XRCpuImage)
    XRCameraSubsystem.Register(XRCameraSubsystemCinfo)
    XRCameraSubsystem.provider
    XRCameraSubsystem.currentCamera
    XRCameraSubsystem.requestedCamera
    XRCameraSubsystem.autoFocusEnabled
    XRCameraSubsystem.autoFocusRequested
    XRCameraSubsystem.currentLightEstimation
    XRCameraSubsystem.requestedLightEstimation
    XRCameraSubsystem.cameraMaterial
    XRCameraSubsystem.currentConfiguration
    XRCameraSubsystem.invertCulling
    XRCameraSubsystem.permissionGranted
    XRSubsystem<XRCameraSubsystemDescriptor>.OnDestroy()
    XRSubsystem<XRCameraSubsystemDescriptor>.Start()
    XRSubsystem<XRCameraSubsystemDescriptor>.Stop()
    XRSubsystem<XRCameraSubsystemDescriptor>.running
    Namespace: UnityEngine.XR.ARCore
    Syntax
    [Preserve]
    public sealed class ARCoreCameraSubsystem : XRCameraSubsystem

    Properties

    backgroundShaderName

    The name for the background shader based on the current render pipeline.

    Declaration
    public static string backgroundShaderName { get; }
    Property Value
    Type Description
    String

    The name for the background shader based on the current render pipeline. Or, null if the current render pipeline is incompatible with the set of shaders.

    Remarks

    The value for the GraphicsSettings.currentRenderPipeline is not expected to change within the lifetime of the application.

    Methods

    CreateProvider()

    Creates an instance of the ARCore-specific camera provider. This provides camera services for ARCore.

    Declaration
    protected override XRCameraSubsystem.Provider CreateProvider()
    Returns
    Type Description
    XRCameraSubsystem.Provider

    Returns a new instance of XRCameraSubsystem.Provider specific to ARCore.

    Overrides
    XRCameraSubsystem.CreateProvider()

    Events

    beforeGetCameraConfiguration

    Invoked from native code just before this subsystem calls ArSession_getSupportedCameraConfigsWithFilter.

    Declaration
    public event Action<ARCoreBeforeGetCameraConfigurationEventArgs> beforeGetCameraConfiguration
    Event Type
    Type Description
    Action<ARCoreBeforeGetCameraConfigurationEventArgs>
    Remarks

    This allows you to customize the ArCameraConfigFilter passed to ArSession_getSupportedCameraConfigsWithFilter.

    Do not destroy the filter object in this callback. Doing so is undefined behavior and may crash.

    The filter pointer to by filter is only guaranteed to exist for the duration of this callback. Accessing it from outside this callback is undefined behavior.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Monday, November 7, 2022
    Terms of use