public PrefabModuleEditor(PrefabPainterEditor editor) { this.editor = editor; this.editorTarget = editor.GetPainter(); LoadTemplateCollection(); }
public void RemoveContainerChildren() { GameObject container = gizmo.container as GameObject; List <Transform> list = new List <Transform>(); foreach (Transform child in container.transform) { list.Add(child); } foreach (Transform child in list) { GameObject go = child.gameObject; PrefabPainterEditor.DestroyImmediate(go); } }