I have a number of SKSpriteNodes with SKLabelNodes as children. What I would like is for any touch within the bounds of the sprite node to be handled by the sprite node, and for its children (the label nodes) to completely ignore touches. I tried doing this:
SKLabelNode *miles = [SKLabelNode labelNodeWithFontNamed:@"Verdana"];
miles.userInteractionEnabled = NO;
But this does not work. The label nodes register touches when I set this property to NO. Next I tried subclassing the label nodes and setting userInterationEnabled = NO in the init, as such:
@implementation BBLabelNode
-(id)init {
if (self = [super init]) {
self.userInteractionEnabled = NO;
}
return self;
}
@end
Sadly, this also did not work. So I am left wondering: how does one properly go about causing a label note to not receive touches at all?