AlicizaX/Client/Packages/com.alicizax.unity.localization/Editor/LocalizationComponentInspector.cs
2025-03-04 18:40:14 +08:00

26 lines
664 B
C#

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));
}
}
}