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?