Using Mono DLLs in a Unity Project

Source: Internet
Author: User

"Using Mono DLLs in a Unity Project"

The path to the Unity DLLs would typically be:

  

An example of building a DLL is as follows:

Mcs-r:/applications/unity/unity.app/contents/frameworks/managed/unityengine.dll-target:library ClassesForDLL.cs

Once compiled, the DLL file can simply be dragged to the Unity project like any other asset. The DLL asset has a foldout triangle which can being used to reveal the separate classes the library. Classes that derive from Monobehaviour can is dragged onto Game Objects like ordinary scripts. Non-monobehaviour classes can be used directly from other scripts in the usual.

Create Dll:in MonoDevelop, you do this by selecting File > New > Solution and then choosing C # > Library.

Reference Dll:in MonoDevelop, you should open the contextual menu for Referencesin the solution Browser and choose Ed It References. Then, choose the option . Net Assembly tab > File System > select File.

Reference: http://docs.unity3d.com/Manual/UsingDLL.html

Using Mono DLLs in a Unity Project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.