ar_world_anchor_shared_with_nearby_participants_create
Initialize a world anchor that should be shared with nearby participants.
Declaration
extern ar_world_anchor_t ar_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 and their lifetime is limited to that of the SharePlay session.
See Also
World tracking
ar_world_anchor_create_with_origin_from_anchor_transformar_world_anchor_is_shared_with_nearby_participantsar_world_anchor_sharing_availability_update_handler_function_tar_world_anchor_sharing_availability_update_handler_tar_world_tracking_add_anchor_completion_handler_tar_world_tracking_remove_anchor_completion_handler_tar_world_tracking_remove_all_anchors_completion_handler_function_tar_world_tracking_remove_all_anchors_completion_handler_tar_world_tracking_anchor_update_handler_tar_world_tracking_configuration_createar_world_anchors_enumerate_anchorsar_world_anchors_enumerate_anchors_far_world_anchors_get_countar_world_tracking_provider_createar_world_tracking_provider_is_supported