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. Dismiss Notice

Question Reference Error in Assembly Definitions

Discussion in 'Editor & General Support' started by ervacoban, Aug 7, 2023.

  1. ervacoban

    ervacoban

    Joined:
    Oct 20, 2019
    Posts:
    6
    Hello. I am currently learning how to use assembly definitions in my project. But I am having problems with referencing upper assembly definitions.

    I have one main assembly definition that is referencing various Library assemblies (Like textmeshpro, input system etc.)

    But when I reference this main assembly definition in sub assembly definitions, I can't access the referenced Library assemblies.

    Error:
    Better explained in image attachted to this post:
    Error.png
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,842
    Your sub assembly also needs to reference the TMPro assembly. They don't 'inherit' the references of assemblies they reference.
     
  3. ervacoban

    ervacoban

    Joined:
    Oct 20, 2019
    Posts:
    6
    Thats interesting. I thought it will take its references assemblies as well. Thank you