in Scripts/Editor/Windows/PropertyDrawers/WitEntityPropertyDrawer.cs [18:40]
protected override string GetLocalizedText(SerializedProperty property, string key)
{
// Determine by ids
switch (key)
{
case LocalizedTitleKey:
string title = GetFieldStringValue(property, "name");
if (!string.IsNullOrEmpty(title))
{
return title;
}
break;
case "id":
return WitTexts.Texts.ConfigurationEntitiesIdLabel;
case "lookups":
return WitTexts.Texts.ConfigurationEntitiesLookupsLabel;
case "roles":
return WitTexts.Texts.ConfigurationEntitiesRolesLabel;
}
// Default to base
return base.GetLocalizedText(property, key);
}