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. Dismiss Notice

Question How do i made a button that changes text with typewriter effect

Discussion in 'Scripting' started by ekically, May 12, 2021.

  1. ekically

    ekically

    Joined:
    May 6, 2021
    Posts:
    3
    How do I make a button that changes text with typewriter effect, this is something I have wanted to make for a while but I am unable to do. Does anyone know how to do this?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,763
    What would be an example of a "typewriter effect" on a button?
     
    Joe-Censored likes this.
  3. ekically

    ekically

    Joined:
    May 6, 2021
    Posts:
    3
    Not what I asked, I asked how would I make a button that changes the text that's NOT on the button but like above it
    with a typewriter effect
     
  4. Antistone

    Antistone

    Joined:
    Feb 22, 2014
    Posts:
    2,833
    But that still doesn't answer what you mean by "typewriter effect". Are you thinking of a way of inputting text? A way of animating text? A way of animating the background that the text is on? Sound effects? Constraints on what text can appear?

    Computer programming is the art of expressing your desires so clearly that even a hunk of silicon can understand them. Be specific!
     
  5. ekically

    ekically

    Joined:
    May 6, 2021
    Posts:
    3
    I'm referring to something like in the game "Start Survey?" I want to do something like that but everything I tried didn't work.
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,763
    Do you mean the characters come out one at a time in a text box, as if you're typing them?

    I made a package a while back... see attached. It has nothing to do with buttons however.
     

    Attached Files:

  7. Antistone

    Antistone

    Joined:
    Feb 22, 2014
    Posts:
    2,833
    If you can't explain what you want except by referencing another game, then the only people who can help you are the people who are familiar with that other game.

    This forum only has a handful of regulars who answer most questions. It's quite possible that not a single one of them will have played whatever game you pick as you example, especially if the game is not massively popular.