Package the script into a Dll in Unity

Because a demand like this was raised recently, I took a look at c# and packaged it into a dll. The online tutorials are all realized by class libraries, but my engineering project has been completed, and all references are done. I am expanding and writing class libraries. It’s too troublesome. After the guidance of a big guy, I found that there is a packaging function in unity. I didn’t know how to use it before. Now record it. If you don’t know, you can learn it. Let’s go to topic 1. First, find the folder of your script and right
click After selecting
Choose to create a dll
and clicking create, there will be an additional dll file, and then give a name to run unity, and you will find the dll you created in the project folder. Unity is a cache, and then import the dll into unity, and delete the script before insert image description herepackaging insert image description here
. The script that needs to be hung can be dragged to the object to be hung.
By the way, if you create a dll in that folder, it will pack all the steps of its own children. You should pay attention to this. Well, if the completed dll packaging is useful to you, please give it a thumbs up.

Guess you like

Origin blog.csdn.net/qq_43687127/article/details/123201734