Stored entities
Manage entities that you store as assets on disk.
Overview
If you bundle 3D assets with your app, or download them from the network into local file storage, you need a way to load them at runtime. RealityKit provides a collection of methods that you use to load USD and Reality files into Entity instances.
Topics
Essentials
Loading an entity hierarchy
Loading an anchor entity
loadAnchor(named:in:)loadAnchor(contentsOf:withName:)loadAnchorAsync(named:in:)loadAnchorAsync(contentsOf:withName:)
Loading a flattened model entity
loadModel(named:in:)loadModel(contentsOf:withName:)loadModelAsync(named:in:)loadModelAsync(contentsOf:withName:)