Files
Bachelor-Arbeit-Adrian-Haefner/Library/PackageCache/com.unity.xr.arkit@58a677f717be/Documentation~/arkit-raycasts.md
adriadri6972 d3d9c5f833 upload project
2025-07-31 15:21:08 +02:00

41 lines
1.8 KiB
Markdown

---
uid: arkit-raycasts
---
# Ray casts
This page is a supplement to the AR Foundation [Ray casts](xref:arfoundation-raycasts) manual. The following sections only contain information about APIs where ARKit exhibits unique platform-specific behavior.
[!include[](snippets/arf-docs-tip.md)]
## Optional feature support
ARKit implements the following optional features of AR Foundation's [XRRaycastSubsystem](xref:UnityEngine.XR.ARSubsystems.XRRaycastSubsystem):
| Feature | Descriptor Property | Supported |
| :------------------------- | :------------------ | :-------: |
| **Viewport based raycast** | [supportsViewportBasedRaycast](xref:UnityEngine.XR.ARSubsystems.XRRaycastSubsystemDescriptor.supportsViewportBasedRaycast)| Yes |
| **World based raycast** | [supportsWorldBasedRaycast](xref:UnityEngine.XR.ARSubsystems.XRRaycastSubsystemDescriptor.supportsWorldBasedRaycast) | |
| **Tracked raycasts** | [supportsTrackedRaycasts](xref:UnityEngine.XR.ARSubsystems.XRRaycastSubsystemDescriptor.supportsTrackedRaycasts) | iOS 13+ |
### Supported trackables
ARKit supports ray casting against the following trackable types:
| TrackableType | Supported |
| :---------------------- | :-------: |
| **BoundingBox** | |
| **Depth** | |
| **Face** | |
| **FeaturePoint** | Yes |
| **Image** | |
| **Planes** | Yes |
| **PlaneEstimated** | Yes |
| **PlaneWithinBounds** | Yes |
| **PlaneWithinInfinity** | Yes |
| **PlaneWithinPolygon** | Yes |
> [!NOTE]
> Refer to AR Foundation [Ray cast platform support](xref:arfoundation-raycasts-platform-support) for more information on the optional features of the Raycast subsystem.
[!include[](snippets/apple-arkit-trademark.md)]