interaction ↑ new in 26.0

GestureComponent

Attaches SwiftUI-style gesture recognisers directly to a RealityKit entity (new in 26.0).

iOS / iPadOS
26.0
since iOS 26.0
visionOS
26.0
since visionOS 26.0
macOS
26.0
since macOS 26.0
Add Component menu

Not listed in the Add Component menu. Must be attached programmatically at runtime.

entity.components.set(GestureComponent(…))
  • New in 26.0