SKSpriteNode setting color with UIColor

后端 未结 1 2046
忘了有多久
忘了有多久 2021-01-19 06:39

I would like to set color of SKSpriteNode by Present Components Values of UIColor By Present Components Values of UIColor, I mean:

(UIColor *)blackColor
(UIC         


        
1条回答
  •  -上瘾入骨i
    2021-01-19 07:26

    Use an SKColor instead of UIColor.

    SKSpriteNode *noffffd = [SKSpriteNode spriteNodeWithColor:[SKColor blackColor] size:CGSizeMake(50, 50);
    

    0 讨论(0)
提交回复
热议问题