This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.xr.arkit@4.2.10/Documentation~/arkit-object-tracking.md

19 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2025-04-28 10:27:07 +08:00
---
uid: arkit-object-tracking
---
# Object tracking
To use object tracking on ARKit, you first need to create a Reference Object Library. See the [AR Subsystems documentation on object tracking](xref:arsubsystems-object-tracking-subsystem) for instructions.
Next, you need to create an ARKit-specific version of the reference object. The [Scanning and Detecting 3D Objects](https://developer.apple.com/documentation/arkit/scanning_and_detecting_3d_objects) page on Apple's developer website allows you to download an app that you can run on an iOS device to produce such a scan. Note that this is a third-party application and Unity is not involved in its development.
The scanning app produces a file with the extension `.arobject`. Drag each `.arobject` file into your Unity project, and Unity generates an `ARKitReferenceObjectEntry` for it.
![Example scan](images/arobject-inspector.png "Example scan")
You should see some metadata and a preview image of the scan.
You can now add the `.arobject` to a reference object in your Reference Object Library:
![Example Reference Object Library](images/reference-object-library-inspector.png "Example Reference Object Library")