This is a really basic question but: How do I customize dimension for default window in content view?
Post
Replies
Boosts
Views
Activity
how do make animation work? my "model3d" has animation in when I open it in reality composer pro but in simulator it's static.
import SwiftUI
import RealityKit
import RealityKitContent
struct ContentView: View {
var body: some View {
ZStack(alignment: .bottom) {
RealityView { content in
if let scene = try? await Entity(named: "model3d", in: realityKitContentBundle) {
content.add(scene)
}
}
}
}
}