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

Third party dlls in custom packages

Discussion in 'Package Manager' started by D3Verdier, Dec 9, 2019.

  1. D3Verdier

    D3Verdier

    Joined:
    Sep 3, 2018
    Posts:
    5
    Not sure if this is the correct place for this but here it goes. How can I reference dlls inside of custom packages.

    ├── package.json
    ├── Editor
    │ ├── Unity.MyPackage.Editor.asmdef
    │ └── Foo.cs
    ├── Runtime
    │ ├── Unity.MyPackage.asmdef
    │ └── Bar.cs
    ├── Assemblies
    . └── ThirdParty.dll

    My package structure is something like this and I would like to access the ThirdParty.dll in Foo.cs and Bar.cs but i'm at a complete loss on how to achieve this.
    Any pointers are greatly appreciated!
     
  2. pahe4retro

    pahe4retro

    Joined:
    Aug 13, 2019
    Posts:
    33
    You can set up your references to other plugin dlls in your assembly definition files:

    OverrideReference.png

    For example, if you need to reference DOTween:

    Plugin.png

    Hope that helps.
     
    qwert024 likes this.
  3. D3Verdier

    D3Verdier

    Joined:
    Sep 3, 2018
    Posts:
    5
    I guess I should have clicked around a little more before asking, thanks a lot, it's just what I needed!
     
    pahe4retro likes this.