Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Check if Tableentry has changed.

Discussion in 'Localization Tools' started by Peanut8, May 17, 2022.

  1. Peanut8

    Peanut8

    Joined:
    May 17, 2018
    Posts:
    10
    Hello

    I would like to check if an tableentry has been changed and mark it as dirty.
    The dirty marking would been achieved with metadata. But I dont know how to check for a changed entry besides checking it for every frame.
    Does a OnChangedTableEntryEvent exists ?

    Thanks for helping me out :)
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,876
    We have some editor events but we may not catch every change being made, it only really catches it through UI changes.

    Code (csharp):
    1. LocalizationEditorSettings.EditorEvents.TableEntryModified
    The entry should already be getting marked dirty from these events though. What exactly are you trying to do?
     
  3. Peanut8

    Peanut8

    Joined:
    May 17, 2018
    Posts:
    10
    I want to mark it as "dirty" so a translator can see it if a entry was changed or not.

    For example there are two columes for german and english for the word car.
    Someone changes the translation in german for some reason.
    I would like to be able to mark the row for the word as "diry" so we know someone should look over the row for the word car.

    Thanks for helping out :)!
     
    karl_jones likes this.