16 lines
463 B
C#
16 lines
463 B
C#
#if MODULE_UITK && UNITY_2023_3_OR_NEWER
|
|
|
|
using UnityEngine.Localization;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace UnityEditor.Localization.UI
|
|
{
|
|
[CustomPropertyDrawer(typeof(LocalizedString.UxmlSerializedData), true)]
|
|
class LocalizedStringUxmlSerializedDataPropertyDrawer : PropertyDrawer
|
|
{
|
|
public override VisualElement CreatePropertyGUI(SerializedProperty property) => new LocalizedStringField("Localized String", property);
|
|
}
|
|
}
|
|
|
|
#endif
|