UnityEngine.UI.DefaultControls.CreateText C# (CSharp) Method

CreateText() public static method

public static CreateText ( Resources resources ) : GameObject
resources UnityEngine.Resources
return UnityEngine.GameObject
        public static GameObject CreateText(Resources resources)
        {
            GameObject obj2 = CreateUIElementRoot("Text", s_ThickElementSize);
            Text lbl = obj2.AddComponent<Text>();
            lbl.text = "New Text";
            SetDefaultTextValues(lbl);
            return obj2;
        }