/// <summary> /// API shim for using <see cref="Text"/> with mutable string /// </summary> public static void SetZString(this Text text, ZString zString) { text.text = zString.ToString(); text.cachedTextGenerator.Invalidate(); text.SetLayoutDirty(); text.SetVerticesDirty(); }