Unity2018编辑模式通过GameObject查找prefab
var prefabObj = PrefabUtility.GetCorrespondingObjectFromSource(childTrans.gameObject);
if (!prefabObj)
{
continue;
}
string prefabPath = PrefabUtility.GetPrefabAssetPathOfNearestInstanceRoot(prefabObj);
if (string.IsNullOrEmpty(prefabPath))
{
Debug.Log("cant find prefabPath");
continue;
}