Hi there, thanks for stopping by!
So im trying to load the text from a txt file into a variable so i can place this variable into a label and display it in the GUI. As an example it would be the help file text that i want to put into a GUI.Window.
iv been floundering around on this for way too long now so i cam here for some help. If anyone has a second id really appriciate it!
here is what i have been trying… but i cant seem to get it working.
Lessons01 is the name of my txt file. Its inside my assets folder.
var lesson01Text = TextAsset;
function windowLessons (windowID : int){
lesson01Text = Resources.Load("Lessons01");
GUI.Label (Rect ( 20, 40, 650, 650), "Show UP NOWWW --->" +(lesson01Text));
}
What am i missing here?