Text Hints

I am going through Will Goldstones book Unity 3.x Game Development Essentials

And I am actually at the end of it and as I was tweaking some stuff I thought about changing my text hints for the campfire and the outpost door a little so they made more sense

The code is working fine no errors in Visual Studio or Unity

My problem is that my text hint goes off the screen and I can’t seem to figure out how to make it be 2 lines instead of one that you can’t read all of?

If i need to explain better or show some code let me know

Also making the font smaller is no solution since it just makes it impossible to read
The problem lies in the hint being too many words for one line of text
Wanting to figure out how to make it do this

"Line 1\nLine 2"

–Eric

Bah that didn’t work
Thank you for trying to help

Nope, \n. The \ is an escape character. You can use other combinations like \0 for a null character, " for quotes inside a string, or, in case you need a literal backslash, \.

It’s not something you’re born knowing; you have to read about it for the first time somewhere. :wink:

–Eric

This actually did nothing but put /n in the text on the screen when the player hit the collider that triggers it

anyway thanks for trying to help I have since made the Hint shorter and more to the point

Please read what I wrote again. You’re still not using \n, even after I explained that /n was wrong…

–Eric

LOL

Just hilarious that someone is trying to learn and might not know everything isn’t it jackass