как получить UIImage из SKSpriteNode

0
задан theMrProgMan 4 March 2019 в 06:14
поделиться

1 ответ

Используйте SKView.texture(from:SKNode), чтобы достичь того, что вы хотите.

let sprite = SKSpriteNode(imageNamed: "fishka")
sprite.blendMode = .alpha
sprite.colorBlendFactor = 1

sprite.color = UIColor.red
var fishka = UIImage?
autoreleasepool{
    fishka = scene!.view!.texture(from:sprite)
}
0
ответ дан Knight0fDragon 4 March 2019 в 06:14
поделиться
Другие вопросы по тегам:

Похожие вопросы: