2020-05-09 13:31:21 +08:00
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
|
|
|
|
[CustomEditor(typeof(LanguageText), true)]
|
|
|
|
|
|
[CanEditMultipleObjects]
|
|
|
|
|
|
public class LanguageTextEditor : UnityEditor.UI.TextEditor
|
|
|
|
|
|
{
|
|
|
|
|
|
SerializedProperty LanguageIndex;
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnEnable()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnEnable();
|
|
|
|
|
|
LanguageIndex = serializedObject.FindProperty("LanguageIndex");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
|
{
|
|
|
|
|
|
serializedObject.Update();
|
|
|
|
|
|
base.OnInspectorGUI();
|
2020-06-23 18:36:24 +08:00
|
|
|
|
//EditorGUILayout.PropertyField(LanguageIndex);
|
2020-05-09 13:31:21 +08:00
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|