1
votes

I can't set the text to an SKLabelNode. Any ideas why this is happening?

I have tried doing like so:

let label = childNode(named:"ScoreLabel")
label.text = "Score: \(score)"

The text doesn't change. It stays as it was.

1

1 Answers

1
votes

You have provided too little information. Try deleting SKLabelNode and creating it again with the same parameters. Comment if it worked