Third party dlls in custom packages

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!

You can set up your references to other plugin dlls in your assembly definition files:

5262443--526487--OverrideReference.png

For example, if you need to reference DOTween:

5262443--526490--Plugin.png

Hope that helps.

2 Likes

I guess I should have clicked around a little more before asking, thanks a lot, it’s just what I needed!

1 Like