FindPrefabRoot() 개인적인 메소드

private FindPrefabRoot ( GameObject source ) : GameObject
source UnityEngine.GameObject
리턴 UnityEngine.GameObject
예제 #1
0
파일: Util.cs 프로젝트: oms064/GGJ2018
 /// <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);
 }