How to do line break in yarn scripts?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
edassis
Posts: 4
Joined: Sun Oct 02, 2022 5:42 pm

How to do line break in yarn scripts?

Post by edassis »

I wasn't able to figure out how to force a line break int the same dialogue when importing from Yarn Spinner scripts. Anyone knows how to do that?

Thanks.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to do line break in yarn scripts?

Post by Tony Li »

Hi,

Assuming you're using TextMesh Pro in your dialogue UI, you can use '<br>' to signify a line break.
edassis
Posts: 4
Joined: Sun Oct 02, 2022 5:42 pm

Re: How to do line break in yarn scripts?

Post by edassis »

I was quick to find this solution after posting here. Thanks!

Any other recomendation?
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to do line break in yarn scripts?

Post by Tony Li »

That should work. If it doesn't, let me know.
Post Reply