How to get pixel color from SKSpriteNode or from SKTexture?

In Sprite Kit you don’t have access to texture data.

Instead you’d have to create a bit mask from the image, for example by loading the image as UIImage or CGImage and scanning for all non-transparent pixels.

Leave a Comment