containedNodeSet()
Finds nodes that are visible in the camera’s viewport.
Declaration
func containedNodeSet() -> Set<SKNode>Return Value
The set of nodes that are in the same scene as the camera and contained in the camera’s viewport.
Discussion
The camera must be part of a scene’s node hierarchy and the scene must be presented in an view.