void OnEnable() { instance = this; this.autoRepaintOnSceneChange = true; this.minSize = new Vector2(236, 250); this.maxSize = new Vector2(236, 10000); rowBackgroundStyle = new GUIStyle(); rowBackgroundStyle.normal.background = EditorGUIUtility.whiteTexture; LoadMaterialPalette(out materials); }
void OnDisable() { instance = null; }