Reputation: 26223
I am adding a SKSpriteNode as a child of an existing SKSpriteNode node but I want the user to still be able to touch the existing parent node underneath (the child is a purely visual element). Is there anyway to add a sprite as a child, have it visible but unseen by touches (and mouse clicks in the simulator).
Upvotes: 2
Views: 1013
Reputation: 20274
By default, the child sprite will ignore touches, unless it's userInteractionEnabled property is set to YES by you.
Upvotes: 4