public static T AddChild <T>(this MonoBehaviour me, T child, string name) where T : MonoBehaviour { child.name = name; return(me.AddChild(child)); }