Find OperationFind operation are costly operations: try to avoid them.
Make
Make a public ListList and assign youyour buttons to that ListList and then iterate the listList.
public List<GameObject> allButton; // it will show in your inspector assign (Drag and
// Drop) all your buttons to this list.
public void ShowAllButtons(){
for(int index=0; index < allButton.Count; index++ ){
allButton..SetActive(true);
}
}