private void CloseAllCreated(UIInfoBase[] infoList)
 {
     TrySaveAllPrefabs(infoList);
     for (int i = 0; i < infoList.Length; i++)
     {
         var item = infoList[i];
         BridgeEditorUtility.SavePrefab(ref item.instanceID);
     }
 }
 private void CloseAllCreated(SerializedProperty arrayProp)
 {
     TrySaveAllPrefabs(arrayProp);
     for (int i = 0; i < arrayProp.arraySize; i++)
     {
         var item           = arrayProp.GetArrayElementAtIndex(i);
         var instanceIDPorp = item.FindPropertyRelative("instanceID");
         BridgeEditorUtility.SavePrefab(instanceIDPorp);
     }
 }
        protected virtual void HideItemIfInstenced()
        {
            var obj = EditorUtility.InstanceIDToObject(instanceIDProp.intValue);

            if (obj != null)
            {
                var go     = obj as GameObject;
                var parent = go.transform.parent;
                BridgeEditorUtility.SavePrefab(go, true);
            }
            instanceIDProp.intValue = 0;
        }
        protected virtual void HideItemIfInstenced()
        {
            var obj = EditorUtility.InstanceIDToObject(instanceIDProp.intValue);

            if (obj != null)
            {
                var go     = obj as GameObject;
                var parent = go.transform.parent;
                BridgeEditorUtility.SavePrefab(go, true);

                if (parent != null && parent.GetComponent <PanelGroup>() == null && parent.childCount == 0)
                {
                    Object.DestroyImmediate(parent.gameObject);
                }
            }
            instanceIDProp.intValue = 0;
        }