Apple Game Frameworks and Technologies: Searching child nodes by class name (page 163)

@Paradox927

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.

@Paradox927

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”

1 Like