question

KeitaTomiyasu avatar image
KeitaTomiyasu asked

How to use CR LF on displayName

i get displayName. and show game window.

but, cant use CR LF.

How to use CR LF on displayName.

thanks.

unity3d
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Did you add the “\r\n” notation into the display name where it needs to start a new line? For instance, "Line1\r\nLine2", or just “Line1\nLine2”.

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KeitaTomiyasu avatar image KeitaTomiyasu commented ·

i tried it.

but, show string "Line1\nLine2".

i want...

"Line1"

"Line2"

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan KeitaTomiyasu commented ·

Would you please share the related code for us to investigate? I am using UnityEngine.UI.Text to display the name:

        text.text = "Line1\nLine2";

And it works fine.

0 Likes 0 ·
KeitaTomiyasu avatar image KeitaTomiyasu Citrus Yan commented ·

using TMPro;

titleText.text = PlayFabManager.instance.characterCatalog.Find((x)=> x.ItemId == gachaId).DisplayName
0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.