GameToolkit-Localization
GameToolkit-Localization copied to clipboard
fix: prevent scenes/prefabs from becoming dirty
fix: prevent scenes/prefabs from becoming dirty when localized values are unchanged
- Add value comparison in TryUpdateComponentLocalization before applying changes
- Only record undo and set property values when localized content actually differs
- Handle UnityEngine.Object equality properly using Unity's == operator
- Resolves issue where saving C# files or opening prefabs with localization components would unnecessarily mark scenes/prefabs as dirty
Check the issue here https://github.com/ibrahimpenekli/GameToolkit-Localization/issues/26