private void OnEnable() { var application = UPaletteEditorApplication.RequestInstance(); _application = application; _toolbarPlusIconContent = EditorGUIUtility.IconContent("d_Toolbar Plus"); _colorContentsView.Setup(); _gradientContentsView.Setup(); _characterStyleContentsView.Setup(); _characterStyleTMPContentsView.Setup(); _application.SetupPaletteEditor(this); }
private void OnDisable() { _application.CleanupPaletteEditor(); UPaletteEditorApplication.ReleaseInstance(); }