Ich versuche, eine SKShapeNode mit einem sehr think Schlag (wie 0,25 Pixel) zu machen. Es scheint, dass lineWidth von 1 das kleinste ist, das ich gehen kann, zumindest sieht es auf dem Bildschirm aus, egal welcher Wert kleiner als 1 ist.Wie wird eine Linienbreite kleiner als 1 für SKShapeNode eingestellt?
SKShapeNode *buttonOutline;
buttonOutline = [[SKShapeNode alloc] init];
CGMutablePathRef myPath = CGPathCreateMutable();
CGPathAddRoundedRect(myPath, NULL, CGRectMake(0, 0, 100, 30), 10, 10);
buttonOutline.path = myPath;
buttonOutline.strokeColor=[SKColor grayColor];
buttonOutline.lineWidth= 0.25;
buttonOutline.name = [NSString stringWithFormat:@"%@-buttonOutline", thisButtonName];
buttonOutline.position = CGPointMake(thisXPos,thisYPod);
buttonOutline.alpha = 1;
Danke, das funktioniert, kann ich nicht diese überall in der Dokumentation finden –