John smith
John smith

Reputation: 353

SpriteKitNode above SKView CALayer

I have a SKScene with some SKSpriteNode and I wanted to draw a shape on CALayer of the SKScene view.

It's working well but my CALayer is always above my SKSpriteNode and I don't know how to send this layer to the back (I mean under the child of my scene)

Is it possible to do that ?

Thanks

Upvotes: 1

Views: 615

Answers (1)

Andrey Gordeev
Andrey Gordeev

Reputation: 32459

No, that's impossible. You cannot place any of your SKNodes above SKViews layer.

To draw a shape use SKShapeNode. It's buggy in iOS 7, but people says it's been improved for iOS 8

Upvotes: 1

Related Questions