I've been using the free version of the Dialogue system for a little while, so far I like it a lot, but I have a couple of questions about some features.
1) Is it possible to have a single word of a text doing an animation in the "Subtitle Text" using textmesh pro?, or different words doing different animations, after all the text is shown?
2) I'm trying to make a custom typewriter that show some words with the normal effect, character by character, and some other words showing them at once, and perhaps shaking the gui at the same time to put in more emphasis on them.
Is this the right approach? I can show word by word, but still have trouble showing some part of the text with a different animation. Thanks in advance!
Code: Select all
public override void StartTyping(string text, int fromIndex = 0) {
var words = text.Split(' ');
StartCoroutine(TypeWordsCoroutine(words));
}
private IEnumerator TypeWordsCoroutine(string[] words) {
string allWords = string.Empty;
for (int i = 0; i < words.Length; ++i) {
for (int j = 0; j < i; j++) {
allWords += words[j] + " ";
}
base.StartTyping(allWords, allWords.Length);
allWords = string.Empty;
yield return new WaitForSeconds(2);
}
}