extend current inspector for UI components

i figure for myself that i create css like system with scriptableObject for exist text component but i need to extend current inspector. For that i wrote

using UnityEditor;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.Events;
using System;
using UnityEngine;

[Serializable]
public class CSSContainer
{
        [SerializeField]
        private string
                name;
        //public CSS4UGUI css; /scriptableObject?
}
[CustomEditor(typeof(Text))]
public class TextClassHandler : UnityEditor.UI.TextEditor
{
        /*public string Text {
                set {
                        OnValueChanged.Invoke ();
                        textComponent.text = value;
                }
        }*/
        public CSSContainer[] cssList;
        public UnityEvent OnValueChanged;
        // Use this for initialization
        void Start ()
        {
                //new TextEditor()
        }
   
        public override void OnInspectorGUI ()
        {
                Debug.Log ("ba");
                //base.OnInspectorGUI ();
        }
}

and no log in console

what i forgot? it is impossible because custom editor exist already? and i must create completely new component for workaround?

1 Like

Can someone say me that, in general, extending current UI component is possible or not without touching sources? or i must create new component which derive from UI component then create custom editor like above?

I’m in the exact same boat and I’m getting no help either. Nobody’s even saying it’s not possible, just the same as this, get nothing back. Not sure where to turn to as a Unity beginner :frowning:

This is nonactual for me - this is impossible without creating dummy script which derive from specific class