I read a string from a file.
When I debug (debugging), I see this in a variable:
Debug output: "Hello.
"
When I just simple Debug.Log or print the variable in the script, I see this in the unity console:
Debug.Log or print output: “Hello.”
I don’t see "
".
Is it possible to output the raw string with Debug.Log or print? So, I can see "
" in the unity console?
Debug.Log() and print() are the same - they print a string to the console. "
" is the escape code for a carriage return + line feed - i.e. a new line on a Windows system. They’re not printable characters, which is why Debug.Log won’t print them.