Saad Tahir
Saad Tahir

Reputation: 355

Is there a way to download a USDZ and place it in the reality kit scene?

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

Answers (2)

Mike Glukhov
Mike Glukhov

Reputation: 1830

Also you can import the model in RealityComposer.

enter image description here

Upvotes: 0

Mubashir Ali
Mubashir Ali

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

Related Questions