SceneKit in Xcode

Hello,


This is a novice question. I created a new label in GameScene.sks, within Xcode, called SKLabelNode_0. Is it possible to programmatically access the properties of this SKLabelNode_0 node from GameScene.swift?


This is from the Xcode Game template.


Thank you

Accepted Answer

I think I figured out how to access the properties of a node from the SceneKit editor:


let testLabel = self.childNodeWithName("SKLabelNode_0") as! SKLabelNode

testLabel.text = "test works!";


The following Forum question helped:

How do I access the children of a nested SKReferenceNode

SceneKit in Xcode
 
 
Q