public void WriteLine(string message, params object[] objects) { string text = string.Format(message, objects); var line = new Text() { text = text, font = font, }; listView.AddChild(line); line.size = new Vector2(0, font.lineHeight); line.transform.SetSiblingIndex(listView.GetChildrenCount() - 2); var textComponent = line.GetComponent <UI.Text>(); textComponent.alignment = UI.TextAnchor.MiddleLeft; }