ive tried Alt+Enter and i get nothing.
"Test Test" shows up as you see it there
Test Test
I've searched around and everyone is saying that that should work what am I doing wrong ?
ive tried Alt+Enter and i get nothing.
"Test Test" shows up as you see it there
Test Test
I've searched around and everyone is saying that that should work what am I doing wrong ?
On mac, alt+enter is fine - on windows, you have to copy paste a blank line from a piece of text
^ there's one for you :D
only works when you do it from code. The compiler puts the right character into the string for you.
myGuiText.text = "Line 1
Line 2";
This js works for me…
#pragma strict
import System.IO;
var fileName = “filename.txt”;
function Start () {
var sr = new StreamReader(Application.dataPath + "/" + fileName);
var fileContents = sr.ReadToEnd();
sr.Close();
guiText.text="";
var lines = fileContents.Split("
“[0]);
for (line in lines) {
guiText.text += line+”
";
}
}
function Update () {
}
This js works for me…
import System.IO;
var fileName = “filename.txt”;
function Start () {
var sr = new StreamReader(Application.dataPath + "/" + fileName);
var fileContents = sr.ReadToEnd();
sr.Close();
guiText.text=“”;
var lines = fileContents.Split("
“[0]);
for (line in lines) {
guiText.text += line+”
";
}
}
function Update () {
}