.primaryRotation, .secondaryRotation, .scale, ]) // RealityKit RealityView { content in if let robot = try? await Entity(named: "Toy_Robot", in: realityKitContentBundle) { ManipulationComponent.configureEntity( robot, hoverEffect: .spotlight(.init(color: .red)), allowedInputTypes: .all, collisionShapes: [.generateBox(size: .init(0.5, 0.5, 0.5))] ) content.add(robot) } } .realityViewLayoutBehavior(.centered) ManipulationComponent CollisionComponent InputTargetComponent HoverEffectComponent を自動で追加してくれる