The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
ARTrackedObjectExtensions
Extensions to AR Foundation's ARTrackedObject
class.
Summary
Public static functions
|
GetExtents(this ARTrackedObject trackedObject)
|
Vector3
Gets the 3D extents of the object.
|
GetObjectLabel(this ARTrackedObject trackedObject)
|
Gets the type of object that the system has identified.
|
Public static functions
GetExtents
Vector3 GetExtents(
this ARTrackedObject trackedObject
)
Gets the 3D extents of the object.
Details |
Parameters |
trackedObject
|
The tracked object.
|
|
Returns
|
The 3D extents of the object.
|
GetObjectLabel
XRObjectLabel GetObjectLabel(
this ARTrackedObject trackedObject
)
Gets the type of object that the system has identified.
Details |
Parameters |
trackedObject
|
The tracked object.
|
|
Returns
|
The object label identified by the system.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-08 UTC.
[null,null,["Last updated 2025-05-08 UTC."],[],[],null,["# ARTrackedObjectExtensions Class Reference\n\nARTrackedObjectExtensions\n=========================\n\nExtensions to AR Foundation's `ARTrackedObject` class.\n\nSummary\n-------\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetExtents](#getextents)`(this ARTrackedObject trackedObject)` | `Vector3` Gets the 3D extents of the object. |\n| [GetObjectLabel](#getobjectlabel)`(this ARTrackedObject trackedObject)` | [XRObjectLabel](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrobjectlabel) Gets the type of object that the system has identified. |\n\nPublic static functions\n-----------------------\n\n### GetExtents\n\n```c#\nVector3 GetExtents(\n this ARTrackedObject trackedObject\n)\n``` \nGets the 3D extents of the object.\n\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------|\n| Parameters | |-----------------|---------------------| | `trackedObject` | The tracked object. | |\n| **Returns** | The 3D extents of the object. |\n\n### GetObjectLabel\n\n```c#\nXRObjectLabel GetObjectLabel(\n this ARTrackedObject trackedObject\n)\n``` \nGets the type of object that the system has identified.\n\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------|\n| Parameters | |-----------------|---------------------| | `trackedObject` | The tracked object. | |\n| **Returns** | The object label identified by the system. |"]]