Anchors
This page is a supplement to the AR Foundation Anchors manual. The following sections only contain information about APIs where XR Simulation exhibits unique platform-specific behavior.
Tip
When developing an AR app, refer to both the AR Foundation documentation as well as the required packages for each platform you support.
Optional feature support
XR Simulation implements the following optional features of AR Foundation's XRAnchorSubsystem:
Feature | Descriptor Property | Supported |
---|---|---|
Trackable attachments | supportsTrackableAttachments | Yes |
Synchronous add | supportsSynchronousAdd | |
Save anchor | supportsSaveAnchor | |
Load anchor | supportsLoadAnchor | |
Erase anchor | supportsEraseAnchor | |
Get saved anchor IDs | supportsGetSavedAnchorIds | |
Async cancellation | supportsAsyncCancellation |
Note
Refer to AR Foundation Anchors platform support for more information on the optional features of the anchor subsystem.
Simulated anchors
XR Simulation contains a Simulated Anchor component that you can add to your XR Simulation environments. Add the Simulated Anchor component to a GameObject in your environment to designate the GameObject as a simulated anchor. XR Simulation adds simulated anchors at runtime using the anchor subsystem's load existing anchors functionality.
Refer to Simulated anchor component for more information on simulated anchors, and XR simulation environments to understand how to add a simulated anchor to your XR Simulation environment.