BBGamelib.ccUtils.GetChildObject C# (CSharp) Method

GetChildObject() public static method

public static GetChildObject ( GameObject obj, string name ) : GameObject
obj UnityEngine.GameObject
name string
return 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){