private void saveFurniturePrefabs() { _helper.ClearFurniture(); foreach (Transform t in _helper.PrefabsContainer.transform) { if (t.gameObject != _helper.PrefabsContainer && PrefabUtility.GetPrefabParent(t.gameObject) != null) { _helper.AddFurniture(new FurnitureHelper.FurnitureData(PrefabUtility.GetPrefabParent(t.gameObject), t.localPosition, t.localRotation)); } } clearFurnitureContainer(); EditorUtility.SetDirty(_helper); }