node: SCNNode, for anchor: ARAnchor) { } // 1. 判斷是否為 imageAnchor guard let imageAnchor = anchor as? ARImageAnchor else{return } // 2.從 scn 檔取出 CathayTown guard let townScene = SCNScene(named: "art.scnassets/Scene/ CathayTown.scn") else{fatalError("no townScene") } townNode = townScene.rootNode.childNode(withName: "town", recursively: false)! // 3. 將 CathayTown 加進 node node.addChildNode(townNode)