Default Unity's property look:
Improved property look and UX:
All you need to do is mark LocalizedString field with [CleanLocalizedString] attribute:
using UnityEngine;
using UnityEngine.Localization;
using CleanLocalizedStringInspector;
public class SampleScript : MonoBehaviour
{
public LocalizedString defaultDrawer;
[CleanLocalizedString] // Single line
public LocalizedString cleanDrawer;
[CleanLocalizedString(lineCount: 3)] // Multiline
public LocalizedString cleanDrawerMultiline;
}This is not a battle-tested solution, but rather a quick prototype made in two evenings.
- quickly clean table entry reference.
- quickly create a new entry by simply typing into the text field.
- set table reference where to put new localization keys per field.
- context-aware key name generation using templates.
Install via git url by adding this entry in your manifest.json
"com.starasgames.unity-clean-localized-string-inspector": "https://github.com/STARasGAMES/com.starasgames.unity-clean-localized-string-inspector.git#upm"
Based on this brilliant code by Thomas "noio" van den Berg: https://gist.github.com/noio/98a2b480321128ee4926973e33da0381