From 8f8b5503ed11b56ee378fd4a05e5974c9958d79b Mon Sep 17 00:00:00 2001 From: jlacoche <jeremy.lacoche@orange.com> Date: Mon, 8 Jul 2024 12:32:07 +0200 Subject: [PATCH] Update documentation for arkit maps --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index a243148..867129c 100644 --- a/README.md +++ b/README.md @@ -49,5 +49,16 @@ The name of the Trackable in the World Storage must correspond to the name of th More information about ARFoundation Mesh Tracking can be found here: https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/manual/features/object-tracking.html +### ARKit ARWorldMap ### +In ARKit, an ARWorldMap includes ARKit's awareness of the physical space in which the user moves the device that can be serialized into a file to be reloaded later on the same or on another device: +https://developer.apple.com/documentation/arkit/arworldmap +On iOS/ARKit Map Trackables are supported with this feature. Only one Map Trackable per World Graph is supported. + +The .map file can be placed in the Unity persistent data path of the application on the user device with the following name: "ARkitWorlMap.map". Alternatively, the variable keyvalueTags of the Trackable can also contain a parameter with the "url" key providing a link to download the map file. + +By default, the origin of the Map Trackable is the point (0, 0 ,0). If the Map includes an Anchor, you can use it as the origin by setting the name of the Trackable in the World Storage with the TrackableId of the ARAnchor stored in the map. https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/api/UnityEngine.XR.ARSubsystems.TrackableId.html + +Samples for creating ARWorldMap with ARFoundation can be found here: +https://github.com/Unity-Technologies/arfoundation-samples/blob/main/Assets/Scripts/Runtime/ARWorldMapController.cs \ No newline at end of file -- GitLab