| using System.Collections; | 
| using System.Collections.Generic; | 
| using UnityEngine; | 
| using UnityEditor; | 
|   | 
| [CustomEditor(typeof(TextImage), true), CanEditMultipleObjects] | 
| public class TextImageEditor : TextExEditor  | 
| { | 
|   | 
|     SerializedProperty sprite;  | 
|     protected override void OnEnable()  | 
|     {  | 
|         base.OnEnable();  | 
|         sprite = serializedObject.FindProperty("m_Sprite");  | 
|     } | 
|   | 
|     public override void OnInspectorGUI()  | 
|     {  | 
|         base.OnInspectorGUI();  | 
|         EditorGUILayout.Space();  | 
|   | 
|         EditorGUILayout.PropertyField(sprite);  | 
|         base.serializedObject.ApplyModifiedProperties();  | 
|     }  | 
|   | 
|   | 
| } |