Exemplo n.º 1
0
        public PrefabModuleEditor(PrefabPainterEditor editor)
        {
            this.editor       = editor;
            this.editorTarget = editor.GetPainter();

            LoadTemplateCollection();
        }
Exemplo n.º 2
0
        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);
            }
        }