diff --git a/GCMonitor.cs b/GCMonitor.cs index 55d495f..689d96c 100644 --- a/GCMonitor.cs +++ b/GCMonitor.cs @@ -728,16 +728,15 @@ private static TextMeshProUGUI addTextOutline(GameObject parent, string s) text.font = UnityEngine.Resources.Load("Fonts/Calibri SDF", typeof(TMP_FontAsset)) as TMP_FontAsset; text.fontSharedMaterial = UnityEngine.Resources.Load("Fonts/Materials/Calibri Dropshadow", typeof(Material)) as Material; - text.enableWordWrapping = false; + text.enableWordWrapping = true; text.isOverlay = true; - + text.characterSpacing = 2; + - //text.renderer.sharedMaterial = text.font.material; + text.alignment = TextAlignmentOptions.Right; + //text.OverflowMode = TextOverflowModes.Overflow; - //text.alignment = TextAnchor.UpperLeft; - //text.horizontalOverflow = HorizontalWrapMode.Overflow; - //text.verticalOverflow = VerticalWrapMode.Truncate; text.color = Color.white; text1Obj.transform.SetParent(parent.transform, false);