Hi, I’m wondering whether RealityKit has its own scene management system, since it uses ARView (backed by ARKit) to present AR content. Does RealityKit manage scenes independently, or does it rely entirely on ARKit’s scene handling? Thank you.
Reality Kit Scene
Hello @cosmicsid
Yes, RealityKit manages its own scene using an entity component system, or ECS for short.
See Scene
Any object in a RealityKit Scene, including models and light sources, is an Entity. Entities can have components attached that provide appearance and behavior.
The ARView contains the Reality.scene object, and provides real-world tracking and plane detection used to tether entities to surfaces.
This WWDC video Dive into RealityKit 2 goes in depth on the ECS and demonstrates RealityKit APIs. Included is a sample project with assets and animations included, so you can get right to understanding the code.
If you want to learn more about RealityKit scene structure see RealityKit and Understanding the modular architecture of RealityKit
Try this out! Let me know if this helps.
Travis Trotto - DTS Engineer