I'm trying to capture an entire Spritekit scene for the purpose of later magnify particular areas. To capture the scene I tried doing:
if let texture = view.texture(from: node) {
let sprite = SKSpriteNode(texture:texture)
// ... do whatever with sprite
}
Which works fine with anything besides the scene itself. For example, if i try this code inside the didMove() method passing self as "node" i get an empty/black texture as a result.