private static void OnNextChar(On.DialogueBox.orig_ShowNextChar orig, DialogueBox self) { TextMeshPro text = ReflectionHelper.GetAttr <DialogueBox, TextMeshPro>(self, "textMesh"); text.maxVisibleCharacters = text.textInfo.pageInfo[self.currentPage - 1].lastCharacterIndex + 1; }
private static void FastText(On.DialogueBox.orig_ShowNextChar orig, DialogueBox self) { self.GetField <DialogueBox, TMPro.TextMeshPro>("textMesh").maxVisibleCharacters = 9999; }