Contents

contains(_:)

Checks to see if a node is visible in the camera’s viewport.

Declaration

func contains(_ node: SKNode) -> Bool

Parameters

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.

See Also

Node Visibility