Showing text box letter by leter

I completed the unity2d in udemy… And now i try to build my own text adventure…

It is similar to Text101 with some polish, such as i would like to show text dialogs letter by letter (like autowriting) but i couldnt… i try evvery video and IEnumerator things in web but couldnt find a solution… is there any one :slight_smile:

Hi Mertol,

Welcome to our forum! :slight_smile:

Have you already looked for “typewriter effect Unity” on Youtube?

Than you Nina;

Yes I watched a lot of videos about typewriting effect but due to we use states, i can not figure out how implement the code…

A State is just a container for the string you want to display. It does not display anything. The AdventureGame object assigns the string to the TextMeshProUGUI variable named text.

Try to understand how the typewriter effect works. Basically, you take the string from the State object with GetStoryText() and process it in the method in AdventureGame that is currently responsible for assigning the whole string to text.

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

Privacy & Terms