static void Init() { BSGWindow myWindow = (BSGWindow)GetWindow(typeof(BSGWindow)); myWindow.titleContent = new GUIContent("Build Scene Generator"); bsgObject = new GameObject("BSG"); bsgObject.hideFlags = HideFlags.HideInHierarchy; bsgObject.AddComponent <BSGButtonScript>(); inspectorGUICode = bsgObject.GetComponent <BSGButtonScript>(); customEditor = Editor.CreateEditor(inspectorGUICode); inspectorGUICode.Populate(); }
static void Init() { BSGWindow myWindow = (BSGWindow)GetWindow(typeof(BSGWindow)); myWindow.titleContent = new GUIContent("B.S.G."); }