Example #1
0
        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);
        }
Example #2
0
 private void OnDisable()
 {
     _application.CleanupPaletteEditor();
     UPaletteEditorApplication.ReleaseInstance();
 }