---
title: containedNodeSet()
framework: spritekit
role: symbol
role_heading: Instance Method
path: spritekit/skcameranode/containednodeset()
---

# containedNodeSet()

Finds nodes that are visible in the camera’s viewport.

## Declaration

```swift
func containedNodeSet() -> Set<SKNode>
```

## Return Value

Return Value The set of nodes that are in the same scene as the camera and contained in the camera’s viewport.

## Discussion

Discussion The camera must be part of a scene’s node hierarchy and the scene must be presented in an view.

## See Also

### Node Visibility

- [contains(_:)](spritekit/skcameranode/contains(_:).md)
