Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Tina51129 on January 30, 2024, 08:44:44 PM
-
Hi!
I want my dialogue text to appear letter by letter, and as I searched there is a typewriter action. However, I dont know how to set it. I made my dialogue text using TextMesh Pro UGUI Set.
Is there a way to do this?
-
Hi,
Save your "original" string or text whatever you use (textmeshpro, text, etc.) you can use "getTextMeshPro Text" to save your text to a string , then make sure your UI text is empty and now use a loop with "Get String Left" or Right if your are using Japanese or Arabic format ;) using your saved string with the "Char Count" increasing each loop and store result string and display this one into your empty Ui text zone and don't forget to use "wait" to get a pause between each display if not you'll get your text shown as whole in 0.001 sec...
-
Thank you. I still couldnt get it done. The letters only appear seperately, but always on the same spot, so its useless. Its probably not the right way, but I guess Playmaker have its limits.
I used Set textMeshpro UGUI text by the way, the other one you mentioned didnt work.
Hi,
Save your "original" string or text whatever you use (textmeshpro, text, etc.) you can use "getTextMeshPro Text" to save your text to a string , then make sure your UI text is empty and now use a loop with "Get String Left" or Right if your are using Japanese or Arabic format ;) using your saved string with the "Char Count" increasing each loop and store result string and display this one into your empty Ui text zone and don't forget to use "wait" to get a pause between each display if not you'll get your text shown as whole in 0.001 sec...
-
Sorry for the delay, long time i didn't get here... I hope you find a solution but in case not with my solution as I said you need to save in a separate string your cumulative string EACH time you are looping and display this one into your textbox. it's maybe that point you forget because if your looping your original string letter by letter thats the reason it's only display on the same spot because you didn't create a phrase but only letters.