public static ContainerWindowCreator CreateWindow(EditorWindow owner, PrefabDataBase data, Container tipe) { var window = GUIAuxiliar.OpenEditorWindow <ContainerWindowCreator>("Create Prefab"); window.edit = false; window = DoStyle(owner, data, tipe, window); return(window); }
private static ContainerWindowCreator DoStyle(EditorWindow owner, PrefabDataBase data, Container tipe, ContainerWindowCreator window) { window.maxSize = new Vector2(300, 300); window.minSize = window.maxSize; window.container = tipe; window.dataBase = data; window.createObject = window.CreateObject; window.Owner = owner; window.ShowUtility(); return(window); }