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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question How to call `using Localization;` `using Localization.Settings;` etc. in managed DLL?

Discussion in 'Scripting' started by AerionXI, Jan 23, 2023.

  1. AerionXI

    AerionXI

    Joined:
    Jul 20, 2020
    Posts:
    482
    Not sure which library I need to import into VS2019 to use the following 3 libraries in my managed C# DLL?

    Code (Csharp):
    1. using UnityEngine.Localization;
    2. using UnityEngine.Localization.Settings;
    3. using UnityEngine.ResourceManagement.AsyncOperations;
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,876
    The localization package uses assembly definition files. There are 2: "Unity.Localization" and "Unity.Localization.Editor".
    These are compiled by the Editor, if you must link against dll's then you can find the temporary ones in "\Library\ScriptAssemblies".
     
  3. AerionXI

    AerionXI

    Joined:
    Jul 20, 2020
    Posts:
    482
  4. JBflowz

    JBflowz

    Joined:
    Feb 23, 2013
    Posts:
    8
    I have a related question the project Im working compiles outside of Unity and I can't seem to find the correct assembly file in order to import
    Code (CSharp):
    1. using UnityEditor.Localization
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,876