static public void Init() { init = true; window = (EditorPlusPrimitives)EditorWindow.GetWindow(typeof(EditorPlusPrimitives)); window.title = "Primitives"; window.minSize = new Vector2(50f, 50f); LoadResources(); EditorPlus.OnSkinSwitched += LoadResources; }