UnityEngine.UI.SGDefaultControls.CreateUIObject C# (CSharp) Method

CreateUIObject() static private method

static private CreateUIObject ( string name, GameObject parent ) : GameObject
name string
parent UnityEngine.GameObject
return UnityEngine.GameObject
        static GameObject CreateUIObject(string name, GameObject parent)
        {
            GameObject go = new GameObject(name);
            go.AddComponent<RectTransform>();
            SetParentAndAlign(go, parent);
            return go;
        }