1
我試圖將遊戲手柄控制器固定在我的相機節點的左下角,但是當我添加節點作爲我的相機的一個孩子它不顯示?SpriteKit - 節點不添加到SKCameraNode - 斯威夫特
let gameCamera = SKCameraNode()
var joypadBackground : SKSpriteNode = SKSpriteNode(imageNamed: "a")
override func didMove(to view: SKView) {
//Set game camera
self.camera = gameCamera
joypadBackground.position = convert(CGPoint(x: 0, y: 0), to: gameCamera)
joypadBackground.size = CGSize(width: 50, height: 50)
joypadBackground.zPosition = 1000
gameCamera.addChild(joypadBackground)
}