BBGamelib.ccUtils.GetChildObject C# (CSharp) 메소드

GetChildObject() 공개 정적인 메소드

public static GetChildObject ( GameObject obj, string name ) : GameObject
obj UnityEngine.GameObject
name string
리턴 UnityEngine.GameObject
		public static GameObject GetChildObject(GameObject obj, string name){
			for(int i=0; i<obj.transform.childCount; i++){
				GameObject child = obj.transform.GetChild(i).gameObject;
				if(child.name == name){
					return child;
				}
			}
			return null;
		}
		public static GameObject GetChildObjectRecursively(GameObject obj, string name){