Search Unity

Question Strip localization comment metadata

Discussion in 'Localization Tools' started by eileensunblink, Mar 20, 2023.

  1. eileensunblink

    eileensunblink

    Joined:
    Apr 12, 2021
    Posts:
    13
    Hello, I'm wondering if anyone has taken advantage of Comment metadata on localized strings without embedding it in the final game. I think I'm seeing that it's still embedded in my game, and we don't use it for anything at runtime, so I'd like to remove it - probably during builds?

    Thought I'd mention it here in case there's a simple or recommended solution I'm not seeing.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    You could try adding #if UNITY_EDITOR to the comment metadata class. You will need to move the package code from the package cache into the project packages folder.
     
  3. eileensunblink

    eileensunblink

    Joined:
    Apr 12, 2021
    Posts:
    13
    Removed internal comment field/property of the comment metadata class using #if UNITY_EDITOR, seems to work. Removing the class entirely broke things.
     
    karl_jones likes this.