예제 #1
0
 /// <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();
 }
예제 #2
0
파일: ZFormatDemo.cs 프로젝트: zoon/ZFormat
 /// <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();
 }