Hi Everyone! I need help! [GUI Text scrolling]

Hi everyone, I’m really new to unity, and even new to scripting… :sweat_smile: and I am having problem and I need help T-T

I’m currently trying to load .txt file that has lots and lots of text in it, to GUI…

and I’m trying to scroll and fade away like old StarWars movie in the beginning…

I’ve managed to find the script that loads the script to the screen, But I have no idea how to make it scroll up to show all the text in the txt file and make each line fade away… :?

like high score thingy here:
http://www.starscenesoftware.com/Unitroids.html

but my text is a lot longer than that…
(I’m trying to show some texts from bible…) :wink:

This is the quote that I attatched to the main Camera object…

So could anyone tell me what kind of code I should type in? please?

Thanks in advance…

You can create 3D text in Unity using the TextMesh class. You can use the character sequence \n to add line breaks to the text, so if your text looks like:

First line\nSecond Line\nThird Line

…it will appear as:-

First Line
Second Line
Third Line

However, making a 3D scrolling text might be a bit complicated if you are new both to Unity and to scripting. It might be a good idea to work through some of our tutorials to get an idea of how everything works.