Question about Visual Studio

I ran out of time in my busy schedule to continue trying out solutions to my problem so I’m wondering if someone on here can help.

How do I add a line break for the Terminal Hacker menu screen?

I looked around the web for an answer and the most common one is

Environment.NewLine

But that didn’t seem to work for me after I switched back to Unity. What am I missing?
Thanks!

Try just poping a “\n” in your string, e.g.

string message;

message = "Hello \n World!"

Not tested, but looking at the code for the Terminal.cs in the WM2000 files, you could probably just use the existing provided functionality;

Terminal.WriteLine("Hello");
Terminal.WriteLine("");
Terminal.WriteLine("World!");

Note the passing of the two " characters, an empty string. You could also use;

Terminal.WriteLine("Hello");
Terminal.WriteLine(string.Empty);
Terminal.WriteLine("World!");

Hope this helps :slight_smile:

Thanks Rob! I’ll try these once I get home.

1 Like

You’re welcome Jon, let me know how you get on.

Both string.Empty and Terminal.WriteLine(“ “); worked for me Rob. Thanks for the help.

1 Like

You’re more than welcome Jon :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms