Class DefaultARKitSessionDelegate
A default implementation of ARKit
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 retries
Declaration
protected override void OnConfigurationChanged(ARKitSessionSubsystem sessionSubsystem)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
sessionSubsystem | The ARKit |
Overrides
OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)
Default handling for session failures. This implementation logs an error and attempts to
reset the session up to
max
Declaration
protected override void OnSessionDidFailWithError(ARKitSessionSubsystem sessionSubsystem, NSError error)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
sessionSubsystem | The ARKit |
NSError | error | The NSError object describing the failure. |