对于我使用 SpriteKit 的 iOS 游戏。我在场景中有一个相机节点。
var cam = SKCameraNode()
self.camera = cam
//THIS WORKS, view zoomed out to 2x
cam.setScale(2)
//I want to animate the zoom out, but this doesn't work
let zoomOutAction = SKAction.scaleTo(2, duration: 1)
cam.runAction(zoomOutAction)