Page 163 says:
Alternatively, you can use the class name instead, like this:
player = childNode(withName: “Player”) as? Player
I do not believe you can find by class name. I’ve tried it multiple ways and checked documentation.
Page 163 says:
Alternatively, you can use the class name instead, like this:
player = childNode(withName: “Player”) as? Player
I do not believe you can find by class name. I’ve tried it multiple ways and checked documentation.
Same remark here. Using the class name doesn’t work.
This is strange because the documentation confirms that it should work:
“When specifying a search string, you can either specify the name of the node or a class name”