[UMG] How to animate text like it's being typed out?
Hi, I'm currently using UMG to create my subtitle/NPC dialogue system.
For now, my block of text simply fades in and out, but I was wondering if there's any way to animate my text widget so that the contents look like they're getting typed out? There is no need for the blinking underscore behind it, but i just want it to roll out naturally instead of showing a giant block of text right away.
Any help, demos or guidance is appreciated. Thanks!
asked Oct 16 '15 at 08:24 PM in Blueprint Scripting
Here is the basics: Take your Completed string, pass it into a For Loop(last index determined by passing the completed string into LEN, first index is just 0) The loop should contain: LEFT(your completed string feeds into this, also the "Index" from the for loop feeds into it) and then a pause of 0.1 seconds or similar. effectively each time around the loop it adds one more letter to the length of the output string. This should be responsible for updating the UMG widget variable that feeds on screen display. in the completed part of the for loop, i'd add a delay of a second or so, and then remove the UMG widget.
answered Oct 16 '15 at 10:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here