Post

Replies

Boosts

Views

Activity

Reply to 3d object animation
Hey @lukejyoon try this inside of your scene: let anim = scene.availableAnimations.first?.repeat(count: 1) {         scene.playAnimation(anim)         content.add(scene)  } So your code should be like this: var body: some View { ZStack(alignment: .bottom) { RealityView { content in if let scene = try? await Entity(named: "model3d", in: realityKitContentBundle) { content.add(scene) let anim = scene.availableAnimations.first?.repeat(count: 1) { scene.playAnimation(anim) content.add(scene) } } } } } }
Mar ’24