Enum ARSessionState
Represents the current state of the AR system.
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public enum ARSessionState
Fields
Name | Description |
---|---|
CheckingAvailability | The session subsystem is currently checking availability of AR on the device. The CheckAvailability() coroutine has not yet completed. |
Installing | AR software is currently installing. The Install() coroutine has not yet completed. |
NeedsInstall | The device supports AR, but requires additional software to be installed. If the provider supports runtime installation, you can call Install() to attempt installation of AR software on the device. |
None | AR has not been initialized and availability is unknown. You can call CheckAvailability() to check availability of AR on the device. |
Ready | The device supports AR, and any necessary software is installed.
This state will automatically change to either |
SessionInitializing | The AR session is currently initializing. This usually means AR is running, but not yet tracking successfully. |
SessionTracking | The AR session is running and tracking successfully. The device is able to determine its position and orientation in the world.
If tracking is lost during a session, this state may change to |
Unsupported | AR is not supported on the device. |