GoogleARCore.Session

Represents an ARCore session, which is an attachment point from the app to the ARCore service.

Summary

Holds information about the global state for ARCore, manages tracking of Anchors and Planes, and performs hit tests against objects ARCore is tracking in the world.

Properties

Status
static SessionStatus
Gets current session status.

Public static functions

CheckApkAvailability()
AsyncTask< ApkAvailabilityStatus >
Checks the availability of the ARCore APK on the device.
CreateAnchor(Pose pose, Trackable trackable)
Creates a new Anchor at the given Pose that is attached to the Trackable.
GetTrackables< T >(List< T > trackables, TrackableQueryFilter filter)
void
Gets Trackables ARCore has tracked.
RequestApkInstallation(bool userRequested)
AsyncTask< ApkInstallationStatus >
Requests an installation of the ARCore APK on the device.

Properties

Status

static SessionStatus Status

Gets current session status.

Public static functions

CheckApkAvailability

AsyncTask< ApkAvailabilityStatus > CheckApkAvailability()

Checks the availability of the ARCore APK on the device.

Details
Returns
An AsyncTask that completes with an ApkAvailabilityStatus when the availability is known.

CreateAnchor

Anchor CreateAnchor(
  Pose pose,
  Trackable trackable
)

Creates a new Anchor at the given Pose that is attached to the Trackable.

If trackable is null, it creates a new anchor at a world pose. As ARCore updates its understading of the space, it will update the virtual pose of the of the anchor to attempt to keep the anchor in the same real world location.

Details
Parameters
pose
The Unity world pose where the anchor is to be creates.
trackable
The Trackable to attach the Anchor to.
Returns
The newly created anchor or null.

GetTrackables< T >

void GetTrackables< T >(
  List< T > trackables,
  TrackableQueryFilter filter
)

Gets Trackables ARCore has tracked.

Details
Template Parameters
T
The Trackable type to get.
Parameters
trackables
A reference to a list of T that will be filled by the method call.
filter
A filter on the type of data to return.

RequestApkInstallation

AsyncTask< ApkInstallationStatus > RequestApkInstallation(
  bool userRequested
)

Requests an installation of the ARCore APK on the device.

Details
Parameters
userRequested
Whether the installation was requested explicity by a user action.
Returns
An AsyncTask that completes with an ApkInstallationStatus when the installation status is resolved.

Send feedback about...