I checked there is no properties for multiline in SKLabelNode. Is it possible to display multiple lines in SKLabelNode?
If no, Please give idea to display text in multilines.
I use this bit of code to get multi lines of code with SKLabelNode. Multilines in a label-github
There is a way now to do multi-line SKLabelNodes.
Set the property numberOfLines to 0. From Apple's documentation:
The default value is 1 (a single line). A value of 0 in interpreted as an unlimited number of lines. If the height of the text reaches the number of lines, the text will be truncated using the line break mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With