GameToolkit-Localization icon indicating copy to clipboard operation
GameToolkit-Localization copied to clipboard

fix: prevent scenes/prefabs from becoming dirty

Open iMobCoding opened this issue 1 month ago • 0 comments

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

iMobCoding avatar Oct 26 '25 19:10 iMobCoding