diff --git a/README.md b/README.md index a2431485de10b63a5d04fe190f6ae56555850056..867129ca1a3ed7d88df7629acb75cbe78264d735 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