Ive put a node into the SKScene file and tried to find it in code with childNode(withName: String) and it refuses to find it.
import GameKit
import SpriteKit
import Foundation
class LoginScene:SKScene{
override func didMove(to view: SKView) {
let buttons = childNode(withName: "//button")
buttons.name = "button"
backgroundColor = SKColor.black
self.addChild(buttons)
}
}// end of LoginScene class
Please help me get some insight into this problem. i keep getting a nill.