I have been trying to render a node tree into an SKTexture
as a possible solution to another question here. I tried searching for an answer to this, and I came across one of Apple's Developer pages (view it here). It says the command which converts a node tree into an SKTexture
is this:
func texture(from node: SKNode) -> SKTexture?
Although, the code is incomplete since there is no code which executes the conversion of a node tree to an SKTexture
. Am I doing something wrong or what is the complete code that I should use to render a node tree into an SKTexture
.
Thanks for any advice, help, and answers!