contains(_:)
Checks to see if a node is visible in the camera’s viewport.
Declaration
func contains(_ node: SKNode) -> BoolParameters
- node:
An Sknode object.
Return Value
true if the node in the same scene and inside the camera’s viewport; otherwise false.
Discussion
The camera must be part of a scene’s node hierarchy and the scene must be presented in an view.