Timeline for Fading Text in one character at a time
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 31, 2017 at 21:28 | comment | added | DMGregory♦ |
"If you could get your string to something like a charArray you may be able to get the individual characters " This line from the code in the question itself does what you describe: GameText.GetComponent<Text>().text = GameText.GetComponent<Text>().text + text[i]; , so this answer and commentary doesn't appear to add anything new. Try to focus on presenting new solutions not already in the question - for example, your idea of fading the canvas horizontally might be achievable through the use of masks.
|
|
Jan 31, 2017 at 21:08 | comment | added | n_plum | If you could get your string to something like a charArray you may be able to get the individual characters that way albeit tedious. | |
Jan 31, 2017 at 20:50 | comment | added | Sora |
I actually have a canvas with a text property as a component, that's how I'm accessing by GameText.GetComponent<Text>() GameText is variable of Canvas that holds the address of FindObjectOfType<Canvas>() .
|
|
Jan 31, 2017 at 18:12 | comment | added | n_plum | Hmm.. It seems you can't be directional with most of these fade methods as they take in only what to fade to and timers. | |
Jan 31, 2017 at 18:00 | comment | added | DMGregory♦ | I think you may have misread the question. They have one method that make characters appear one at a time (jumping from absent to opaque), and one method that makes the whole text fade gradually as a unit. They've asked for a method that gradually fades a character at a time. Your horizontal fade is an interesting proposal in this regard - I'd recommend expanding on that, to demonstrate how it can be achieved. | |
Jan 31, 2017 at 17:54 | comment | added | n_plum | Your solution @DMGregory, imo, was viable as well, but since they didn't seem to want that I was just trying to provide other sources I know can do similar things. | |
Jan 31, 2017 at 17:53 | comment | added | n_plum | I wasn't 100% sure because they said they have one that fades per character and one that does them all. I don't particularly know for sure, but you may be able to do per character fade with something like the canvas, if you did some sort of fade across, like horizontally. | |
Jan 31, 2017 at 17:49 | comment | added | DMGregory♦ | All of these suggestions seem to fade the text as a whole, rather than one character at a time as requested in the question. Have I misunderstood? | |
Jan 31, 2017 at 13:13 | history | answered | n_plum | CC BY-SA 3.0 |