Namespace UnityEngine.XR.ARFoundation
Classes
ARAnchor
Represents an Anchor tracked by an XR device.
ARAnchorManager
Manages anchors.
ARBackgroundRendererFeature
A render feature for rendering the camera background for AR devies.
ARCameraBackground
Add this component to a Camera
to copy the color camera's texture onto the background.
If you are using the Lightweight Render Pipeline (version 5.7.2 or later) or the Univerisal Render
Pipeline (version 7.0.0 or later), you must also add the ARBackground
ARCameraManager
Manages the lifetime of the XRCameraSubsystem
. Add one of these to a Camera
in your scene
if you want camera texture and light estimation information to be available.
AREnvironmentProbe
A GameObject component to manage the reflection probe settings as the environment probe changes are applied.
AREnvironmentProbeManager
This class creates, maintains, and destroys environment probe GameObject components as the
XREnvironmentProbeSubsystem
provides updates from environment probes as they are detected in the
environment.
ARFace
Represents a face detected by an AR device.
ARFaceManager
Creates, updates, and removes GameObject
s with ARFace components under the
ARSession
ARFaceMeshVisualizer
Generates a mesh for an ARFace.
ARHumanBody
Trackable human body containing the base pose for the body and the body skeleton.
ARHumanBodyManager
The manager for the human body subsystem.
ARInputManager
Manages the lifetime of the XRInputSubsystem
. Add one of these to any GameObject
in your scene
if you want device pose information to be available. Read the input by using the TrackedPoseDriver
ARLightEstimationDataTestFixture
ARMeshManager
A manager for triangle meshes generated by an AR device.
Creates, updates, and removes GameObject
s in
response to the environment. For each mesh, a meshMeshFilter
. If the
meshGameObject
also has a
MeshCollider
, then a physics mesh is generated
asynchronously, without blocking the main thread.
AROcclusionManager
The manager for the occlusion subsystem.
ARParticipant
Represents a participant (that is, another device in a collaborative session).
ARParticipantManager
A manager for ARParticipants. Creates, updates, and removes
GameObject
s in response to other users in a multi-user collaborative session.
ARPlane
Represents a plane (that is, a flat surface) detected by an AR device.
ARPlaneManager
A manager for ARPlanes. Creates, updates, and removes
GameObject
s in response to detected surfaces in the physical
environment.
ARPlaneMeshGenerators
Generator methods for ARPlane mesh geometery.
ARPlaneMeshVisualizer
Generates a mesh for an ARPlane.
ARPointCloud
Represents a detected point cloud. These are also known as feature points.
ARPointCloudManager
A manager for ARTrackedXRDepthSubsystem
to recognize and track depth data in the physical environment.
ARPointCloudMeshVisualizer
Renders an ARPointMesh
with MeshTopology.Points
.
ARPointCloudParticleVisualizer
Renders an ARPointParticleSystem
.
ARPoseDriver
The ARPoseDriver component applies the current Pose value of an AR device to the transform of the GameObject.
ARRaycast
Represents a raycast that updates automatically.
ARRaycastManager
Manages an XRRaycastSubsystem
, exposing raycast functionality in AR Foundation. Use this component
to raycast against trackables (that is, detected features in the physical environment) when they do not have
a presence in the Physics world.
ARReferencePoint
Represents a reference point tracked by an XR device.
ARReferencePointManager
Manages reference points.
ARSession
Controls the lifecycle and configuration options for an AR session. There is only one active session. If you have multiple ARSession components, they all communicate to the same session and will conflict with each other.
Enabling or disabling the ARSession starts or stops the session, respectively.
ARSessionOrigin
An ARSessionOrigin
is the parent for an AR setup. It contains a Camera
and
any GameObject
s created from detected features, such as planes or point clouds.
ARSessionTestFixture
ARTrackable
The base class for all ARTrackable<TSession
ARTrackableManager<TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable>
A generic manager for components generated by features detected in the physical environment.
ARTrackable<TSessionRelativeData, TTrackable>
A generic component for trackables. A "trackable" is a feature in the physical environment that can be detected and tracked by an XR device.
ARTrackedImage
Represents a tracked image in the physical environment.
ARTrackedImageManager
A manager for ARTrackedXRImageTrackingSubsystem
to recognize and track 2D images in the physical environment.
ARTrackedObject
Represents a tracked object in the physical environment.
ARTrackedObjectManager
A manager for ARTrackedXRObjectTrackingSubsystem
to recognize and track 3D objects in the physical environment.
ARUpdateOrder
The update order for MonoBehaviour
s in AR Foundation.
CameraModeExtensions
Extensions related to the Camera
LightEstimationExtensions
Extension methods for the Light
LoaderUtility
A utility for interacting with an XRLoader
from
XR Management.
MeshQueueTestFixture
MutableRuntimeReferenceImageLibraryExtensions
Extension methods for
Mutable
PlaneDetectionModeMaskAttribute
An attribute that can be placed on MonoBehaviour
fields to
generate the correct UI for the
PlaneDetectionMode
enum.
PoseExtensions
Several method extensions to Pose
for inverse-transforming additional Unity types.
PoseExtensionsTestFixture
SubsystemLifecycleManager<TSubsystem, TSubsystemDescriptor, TProvider>
A base class for subsystems whose lifetime is managed by a MonoBehaviour
.
TrackingModeExtensions
Extensions for the TrackingFeature
enums,
allowing conversion between the two.
TransformExtensions
Several method extensions to Transform
for transforming and inverse-transforming additional Unity types.
Structs
ARAnchorsChangedEventArgs
Event arguments for the anchors
ARCameraFrameEventArgs
A structure for camera-related information pertaining to a particular frame.
This is used to communicate information in the frame
AREnvironmentProbesChangedEvent
Event arguments for the environment
ARFaceUpdatedEventArgs
Holds data relevant to the updated event.
ARFacesChangedEventArgs
Event arguments for the faces
ARHumanBodiesChangedEventArgs
Container for the changed human
ARLightEstimationData
A structure for light estimation information provided by the AR device.
ARMeshesChangedEventArgs
Event arguments for the meshes
AROcclusionFrameEventArgs
A structure for occlusion information pertaining to a particular frame. This is used to communicate information
in the frame
ARParticipantsChangedEventArgs
Event arguments for the participants
ARPlaneBoundaryChangedEventArgs
Data associated with an boundary
ARPlanesChangedEventArgs
Event arguments for the planes
ARPointCloudChangedEventArgs
Event arguments for the point
ARPointCloudUpdatedEventArgs
The arguments for the updated event. This is currently empty, but it might change in the future without the need to change the subscribers' method signatures.
ARRaycastHit
Represents the result of a raycast intersection with a trackable.
ARRaycastUpdatedEventArgs
Provides arguments for the updated event.
ARReferencePointsChangedEventArgs
Event arguments for the reference
ARSessionStateChangedEventArgs
Event arguments for state
ARTrackablesParentTransformChangedEventArgs
Event arguments for the trackables
ARTrackedImagesChangedEventArgs
Event arguments for the tracked
ARTrackedObjectsChangedEventArgs
Event arguments for the tracked
TrackableCollection<TTrackable>
A collection for ARTrackable<TSessionforeach
statement.
TrackableCollection<TTrackable>.Enumerator
An Enumerator
for TTrackable
s.
Enums
AREnvironmentProbePlacementType
Represents the method used to place an environment probe in the AR session.
ARSessionState
Represents the current state of the AR system.
CameraFacingDirection
Represents the camera used when supplying the video feed.
LightEstimation
Defines types of light estimation.
TrackingMode
Represents the tracking mode for the session.