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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

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:
    7,398
    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.