GoogleARCore

Summary

Enumerations

ApkAvailabilityStatus enum
Possible statuses for the ARCore APK availability on a device.
ApkInstallationStatus enum
Possible statuses for an ARCore APK installation request on a device.
CameraMetadataTag enum
This enum follows the layout of NdkCameraMetadataTags.
LightEstimateState{
  NotValid,
  Valid
}
enum
Possible states for LightEstimate.
SessionStatus{
  None = 0,
  Initializing = 1,
  Tracking = 100,
  LostTracking = 101,
  NotTracking = 102,
  FatalError = 200,
  ErrorApkNotAvailable = 201,
  ErrorPermissionNotGranted = 202,
  ErrorSessionConfigurationNotSupported = 203
}
enum
Possible states for the ARCore session.
TrackableHitFlags{
  None = 0,
  PlaneWithinPolygon = 1 << 0,
  PlaneWithinBounds = 1 << 1,
  PlaneWithinInfinity = 1 << 2,
  FeaturePoint = 1 << 3,
  FeaturePointWithSurfaceNormal = 1 << 4
}
enum
Flags representing categories of raycast hits.
TrackableQueryFilter{
  All,
  New,
  Updated
}
enum
A filter for trackable queries.
TrackedPointOrientationMode enum
The orientation mode for a TrackedPoint.
TrackingState{
  Tracking = 0,
  Paused = 1,
  Stopped = 2
}
enum
Possible tracking states for ARCore.

Classes

GoogleARCore.ARCoreBackgroundRenderer

Renders the device's camera as a background to the attached Unity camera component.

GoogleARCore.ARCoreSession

A component that manages the ARCore Session in a Unity scene.

GoogleARCore.ARCoreSessionConfig

Holds settings that are used to configure the session.

GoogleARCore.Anchor

Attaches a GameObject to an ARCore Trackable.

GoogleARCore.AndroidPermissionsManager

Manages Android permissions for the Unity application.

GoogleARCore.AsyncTask< T >

A class used for monitoring the status of an asynchronous task.

GoogleARCore.EnvironmentalLight

A component that automatically adjust lighting settings for the scene to be inline with those estimated by ARCore.

GoogleARCore.Frame

Provides a snapshot of the state of ARCore at a specific timestamp associated with the current frame.

GoogleARCore.Session

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

GoogleARCore.SessionStatusExtensions

Extension methods for the SessionStatus enumeration.

GoogleARCore.Trackable

An object ARCore is tracking in the real world.

GoogleARCore.TrackedPlane

A planar surface in the real world detected and tracked by ARCore.

GoogleARCore.TrackedPoint

A point in the real world tracked by ARCore.

Structs

GoogleARCore.AndroidPermissionsRequestResult

Structure holding data summarizing the result of an Android permissions request.

GoogleARCore.CameraImageBytes

An ARCore camera image with its data accessible from the CPU in YUV-420-888 format.

GoogleARCore.CameraMetadataRational

CameraMetadataRational follows the layout of ACameraMetadata_rational struct in NDK.

GoogleARCore.CameraMetadataValue

Struct to contain camera metadata's value.

GoogleARCore.DisplayUvCoords

Stores UV display coordinates for mapping the four corners of the display.

GoogleARCore.LightEstimate

An estimate of lighting conditions in the environment corresponding to an AR frame.

GoogleARCore.PointCloudPoint

A point in a point cloud.

GoogleARCore.TrackableHit

Contains information about a raycast hit against a physical object tracked by ARCore.

Enumerations

ApkAvailabilityStatus

 ApkAvailabilityStatus

Possible statuses for the ARCore APK availability on a device.

ApkInstallationStatus

 ApkInstallationStatus

Possible statuses for an ARCore APK installation request on a device.

CameraMetadataTag

 CameraMetadataTag

This enum follows the layout of NdkCameraMetadataTags.

The values in the file are used for requesting / marshaling camera image's metadata. The comments have been removed to keep the code readable. Please refer to NdkCameraMetadataTags.h for documentation: https://developer.android.com/ndk/reference/ndk_camera_metadata_tags_8h.html .

LightEstimateState

 LightEstimateState

Possible states for LightEstimate.

Properties
NotValid

Estimate is not valid and should not be used.

Valid

Estimate is valid.

SessionStatus

 SessionStatus

Possible states for the ARCore session.

Properties
ErrorApkNotAvailable

An ARCore session cannot begin tracking because the ARCore service APK is not available on the device.

ErrorPermissionNotGranted

An ARCore session cannot begin tracking because the Android camera permission is not granted.

ErrorSessionConfigurationNotSupported

An ARCore session cannot begin tracking because the session configuration supplied is not supported or no session configuration was supplied.

FatalError

An ARCore session cannot begin tracking because a fatal error was encountered.

Initializing

The ARCore session is initializing.

LostTracking

The ARCore session has lost tracking and is attempting to recover.

None

The ARCore session has not been initialized.

NotTracking

The ARCore session is paused.

Tracking

The ARCore session is tracking.

TrackableHitFlags

 TrackableHitFlags

Flags representing categories of raycast hits.

Properties
FeaturePoint

The collision is on a feature point in the current frame's point cloud.

FeaturePointWithSurfaceNormal

The collision is on a feature point in the current frame's point cloud that has a surface normal estimate (orientation).

None

This value is returned on a TrackableHit to indicate no collision occurred.

If you pass this into Raycast, you will not get any collision results.

PlaneWithinBounds

The collision is within the TrackedPlane's bounding box.

PlaneWithinInfinity

The collision is on the TrackedPlane, but not limited to the bounding box or polygon.

This acts as if the plane extends out to infinity.

PlaneWithinPolygon

The collision is within the the TrackedPlane's convex bounding polygon.

TrackableQueryFilter

 TrackableQueryFilter

A filter for trackable queries.

Properties
All

Indicates available trackables.

New

Indicates new trackables detected in the current ARCore Frame.

Updated

Indicates trackables that were updated in the current ARCore Frame.

TrackedPointOrientationMode

 TrackedPointOrientationMode

The orientation mode for a TrackedPoint.

TrackingState

 TrackingState

Possible tracking states for ARCore.

Properties
Paused

ARCore has paused tracking the entity but may resume tracking it in the future.

Stopped

ARCore has stopped tracking the entity and will never resume tracking it.

Tracking

The entity is actively being tracked.

Send feedback about...