public void hideBtnOK( ) { UIWidget btnClose = butWidget.transform.Find("Button_Close").GetComponent <UIWidget>(); btnClose.ESetActive(false); //btnClose.width=74; //btnClose.height=74; //btnClose.transform.localPosition=pos; // for(int i=0;i<btnClose.transform.childCount;i++){ // btnClose.transform.GetChild(i).ESetActive(false); // } // foreach(Transform child in btnClose.transform.childCount){ // child.ESetActive(false); // } }