Class DefaultARKitSessionDelegate
A default implementation of ARKitSessionDelegate.
Inherited Members
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
retriesRemaining
The number of session reset attempts remaining.
Declaration
public int retriesRemaining { get; protected set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
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
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. |