Export SKTexture to a UIImage with alpha channel
问题 I would like to be able to export my SKTexture to an external image file. I have been able to achieve this using the following code. However it suffers from the critical flaw that the alpha channel is ignored even thoough the view is not opaque and all background colours are set to clear. - (void)export:(CGRect)bounds texture:(SKTexture *)texture path:(NSString *)path{ UIGraphicsBeginImageContextWithOptions(bounds.size, NO, [UIScreen mainScreen].scale); SKView *view = [[SKView alloc]