<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ar_world_anchor_shared_with_nearby_participants_create",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:@F@ar_world_anchor_shared_with_nearby_participants_create"
  },
  "title" : "ar_world_anchor_shared_with_nearby_participants_create"
}
-->

# ar_world_anchor_shared_with_nearby_participants_create

Initialize a world anchor that should be shared with nearby participants.

```
extern ar_world_anchor_tar_world_anchor_shared_with_nearby_participants_create(simd_float4x4 origin_from_anchor_transform);
```

## Parameters

`origin_from_anchor_transform`

The transform from the world anchor to the origin coordinate system.

## Return Value

An instance of `ar_world_anchor_t` which is marked to be shared with nearby participants.

## Discussion

:

- Nearby participants refer to participants that are nearby to the local participant in a SharePlay session.
- World anchors that are marked for sharing do not get persisted across reboots and their lifetime is limited to that of the SharePlay session.

> Note: This type supports ARC. In non-ARC files, use `ar_retain()` and `ar_release()` to retain and release the object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)