private string GetEndCharTags(int index) { if (totalTextModifiers.Count > 0) { string tags = ""; for (int i = totalTextModifiers.Count - 1; i >= 0; --i) { TextEffect effect = totalTextModifiers[i]; if (effect.isUnityRichText()) { if (effect.isEffectActive(index)) { tags += effect.end_tag; } } } return(tags); } else { return(""); } }