Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Write a text and wait 1 second after each letter

Discussion in 'Scripting' started by Kjell2001, Nov 5, 2019.

  1. Kjell2001

    Kjell2001

    Joined:
    May 11, 2018
    Posts:
    2
    I want to write a text where each letter appears after one another after a short break.

    Code (CSharp):
    1.             for (int i = 0; i < text.Length; i++)
    2.             {
    3.                 anzeige.text += text[i];
    4.                 // Wait for 1 second
    5.             }
    How can I wait for 1 second after each letter?
    I tried different things I found on the internet, but nothing works. I start to think it's my fault.
    I appreciate every help I can get!
     
  2. Nadinya

    Nadinya

    Joined:
    Mar 1, 2019
    Posts:
    5
  3. Kjell2001

    Kjell2001

    Joined:
    May 11, 2018
    Posts:
    2