Editor window to create DLLs from C# code in Unity easily
- In Unity, go to
Tools/UniDLL/Dll Creator - Fill the following details
.NET Compiler: the version of the compiler to be usedDLL Name: the name of the DLL that is to be generatedSource: list of C# sources. Add a Folder to add all the*.csfiles inside it recursively or add a.csfile to add a single source fileDefines: list of compiltation symbols for the DLLReferences: list of references that must be used for compiling.
- Click
Create - The build is stored inside the Unity Project's
Assetsfolder in a folder called<DLL Name>-build. AnyLICENSEandREADMEfiles from the Unity project root are also copied there. Right-click on this folder to export aUnityPackage.