1

CGPath を使用してシーンに SKShapeNode を描画しました。strokeTexture は単なる円です。iOS8では完璧に動作します。iOS9ではテクスチャ部分を外さないと全く動きません。これが私のコードです:

    SKTexture *pathTexture = [AtlasHelper getTexture:@"circle.png" fromAtlas:@"Common"];
    UIBezierPath *path = [UIBezierPath interpolateCGPointsWithHermite:pointsArray closed:NO];
    SKShapeNode *shape = [SKShapeNode shapeNodeWithPath:[path CGPath]];
    shape.strokeTexture = pathTexture;
    [shape setStrokeColor:[UIColor whiteColor]];
    shape.lineWidth = 20;
    shape.zPosition = zOrderAbovePopUps;
    [self addChild:shape];

注: 1.Remove strokeTexture はそれを解決しますが、パスはテクスチャなしで描画されています (これは私が必要とするものです) 2.Remove stroke color は何も変更しません 3.このコードの結果は、奇妙でぼやけたポイントです: (

お願い助けて。

ありがとうございました

4

1 に答える 1