FindPrefabRoot() private method

private FindPrefabRoot ( GameObject source ) : GameObject
source UnityEngine.GameObject
return UnityEngine.GameObject
Esempio n. 1
0
 /// <summary>
 /// Determine whether the object is part of a prefab, and if it is the root of the prefab tree
 /// </summary>
 /// <param name="g"></param>
 /// <returns></returns>
 public static bool IsPrefabParent(GameObject g)
 {
     return(PrefabUtility.FindPrefabRoot(g) == g);
 }