efe_ertugrul

apple developer

home tech_notes app_store github stackoverflow devto

Creating a New Node By Rendering To a Texture


Render a portion of the node tree into a new texture.

Overview

You can create a texture from some portion of on-screen content with texture(from:), or its variation, texture(from:crop:). Both of these functions are available for scenes rendered by SKView or WKInterfaceSKScene.

There are a couple reasons you might want to do this, for example:


download this page as .md

download this page as .pdf

back to SpriteKit documentation