docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultARKitSessionDelegate

    A default implementation of ARKitSessionDelegate.

    Inheritance
    object
    ARKitSessionDelegate
    DefaultARKitSessionDelegate
    Inherited Members
    ARKitSessionDelegate.OnCoachingOverlayViewWillActivate(ARKitSessionSubsystem)
    ARKitSessionDelegate.OnCoachingOverlayViewDidDeactivate(ARKitSessionSubsystem)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARKit
    Assembly: Unity.XR.ARKit.dll
    Syntax
    public class DefaultARKitSessionDelegate : ARKitSessionDelegate

    Properties

    maxRetryCount

    (Read Only) The maximum number of attempts to reset the session if the session fails.

    Declaration
    public virtual int maxRetryCount { get; set; }
    Property Value
    Type Description
    int
    See Also
    OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)

    retriesRemaining

    The number of session reset attempts remaining.

    Declaration
    public int retriesRemaining { get; protected set; }
    Property Value
    Type Description
    int
    See Also
    maxRetryCount

    Methods

    OnConfigurationChanged(ARKitSessionSubsystem)

    Resets the retriesRemaining to maxRetryCount.

    Declaration
    protected override void OnConfigurationChanged(ARKitSessionSubsystem sessionSubsystem)
    Parameters
    Type Name Description
    ARKitSessionSubsystem sessionSubsystem

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    Overrides
    ARKitSessionDelegate.OnConfigurationChanged(ARKitSessionSubsystem)

    OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)

    Default handling for session failures. This implementation logs an error and attempts to reset the session up to maxRetryCount times.

    Declaration
    protected override void OnSessionDidFailWithError(ARKitSessionSubsystem sessionSubsystem, NSError error)
    Parameters
    Type Name Description
    ARKitSessionSubsystem sessionSubsystem

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    NSError error

    The NSError object describing the failure.

    Overrides
    ARKitSessionDelegate.OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)
    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)