spatial visionOS 2

ReferenceComponent

Identifies an entity by a named reference string for runtime lookup and binding.

iOS / iPadOS
18.0
since iOS 18.0
visionOS
2.0
since visionOS 2.0
macOS
15.0
since macOS 15.0
Add Component menu

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

entity.components.set(ReferenceComponent(…))