Unity Debug.Log ignores newlines.

Just a piece of knowledge to file away to prevent frustration later.

I was trying to write to a file and kept getting an invalid character exception. When looking at the file path as printed out in the Unity Debug Logger it looked just fine. When I copied and pasted it somewhere else, the newline showed up.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>