\n not working in Sklabel SpriteKit

前端 未结 4 2298
滥情空心
滥情空心 2021-02-20 10:53

I have been using the following code in my game. The Problem is that i am unable to make multi-line label in spritekit as i was able to do using CCLabelTTF...... Can Somebody he

4条回答
  •  感动是毒
    2021-02-20 11:36

    It appears that SKLabelNode only supports one line of text at a time. I can't find it in the SpriteKit documentation or anywhere else official, but it's mentioned on the 47th slide of this WWDC presentation. You'll have to use UILabel instead, which you can see explained here.

提交回复
热议问题