is your project a visionOS project? I think its because Model3D struct is only available for visionOS according to Apple docs
the solution that worked for me was using a RealityView with an Entity. Like this:
RealityView { content in
async let robot: Entity = Entity(named: "Robot-Drummer")
if let robot = try? await robot {
content.add(robot)
}
} update: { content in
//
}
Hope it helps :D
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: