Reputation: 355
I want to create an app that uses reality kit rcproject to augment content in AR. I know how to create an entity in Reality Composer but the problem is that I have multiple models. I can't place them as objects in Reality Composer and ship it into the app. Like I do for an ARKit app, I want to download models from the site and then place them in the AR Experience made with Reality Kit. How can I do that?
Upvotes: 3
Views: 2373
Reputation: 359
Download the model and then try this out:
let url = URL(fileURLWithPath: "path/to/MyEntity.usdz")
let entity = try? Entity.load(contentsOf: url)
for more details: apple documentation
Upvotes: 3