I’m revealing text with maxVisibleCharacters parameter.
const int n = 1;
for (int i = 0; i < currentDialogue.lines[currentLine].text.Length; i += n)
{
text.maxVisibleCharacters += n;
yield return new WaitForSeconds(n / currentDialogue.typeRate);
}
but in the game when text start revealing starts massive lags. FPS drops to 30-15 frames, when normally it’s about 200-100.