AlicizaX/Client/Packages/com.alicizax.unity.localization/Editor/LocalizationComponentInspector.cs

26 lines
664 B
C#
Raw Normal View History

2025-02-06 18:08:18 +08:00
using AlicizaX.Editor;
using AlicizaX.Localization.Runtime;
using AlicizaX.Runtime;
using UnityEditor;
namespace AlicizaX.Localization.Editor
{
[CustomEditor(typeof(LocalizationComponent))]
internal sealed class LocalizationComponentInspector : ComponentTypeComponentInspector
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
serializedObject.Update();
serializedObject.ApplyModifiedProperties();
Repaint();
}
protected override void RefreshTypeNames()
{
RefreshComponentTypeNames(typeof(ILocalizationManager));
}
}
}