Renders a portion of a node’s contents and returns the rendered image as a texture.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
The node object that is the root node of the tree you want to render to the texture.
A rectangle in the node’s coordinate system that describes the area to be rendered.
A SpriteKit texture that holds the rendered image.
The node being rendered does not need to appear in the view’s presented scene. The new texture is created with a size equal to the size of the
crop rectangle. If the node is not a scene node, it is rendered with a clear background color (