static public GameObject AddChild(this GameObject parent, GameObject prefab)
{
if (prefab != null && parent != null)
{
var t = prefab.transform;
t.parent = parent.transform;
t.localPosition = Vector3.zero;
t.localRotation = Quaternion.identity;
t.localScale = Vector3.one;
prefab.layer = parent.layer;
}
return prefab;
}