Skip to content

Commit 86fc33f

Browse files
committed
resetting scale after parenting UIText to canvas
1 parent 00918b4 commit 86fc33f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/BossRoom/Scripts/Infrastructure/NetworkStats.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ void InitializeTextLine(string defaultText, out TextMeshProUGUI textComponent)
109109

110110
var rectTransform = rootGO.GetComponent<RectTransform>();
111111
Editor.NetworkOverlay.Instance.AddToUI(rectTransform);
112+
rectTransform.localScale = Vector3.one;
112113
}
113114

114115
void FixedUpdate()

0 commit comments

Comments
 (0)