Unity plugin written with Assembly

The official Unity docs say that the plugins written with C/C++ ,C# can be easily integrated within Unity PRO.My question is :what about a plugin written in one of 8086 assembly languages?

Plugins are DLLs (for PCs; MACs use DYLIBs or something equivalent). No matter which language you use, your plugin must be compiled to generate a DLL. Doing it in assembler is painfull, since you must conform to the data formats and argument passing conventions (functions receive parameters pushed in the stack in the inverse order - first arguments are pushed last, so they will be at the beginning of the stack frame). If your function will not require any argument, things will be a lot easier.

Once you have a DLL, you can save it in the Plugins folder and write a C# script declaring its functions, like this:

using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;

public class MyPluginFunctions : MonoBehaviour {

    public static extern void MyFunction1();

    public static extern void MyFunction2(double argument1);

    void Update(){
        if (Input.GetMouseButtonDown(0)){

These answers are great. I wanted to suggest, in addition, that using a C project to produce the DLL would be smart. You could then throw your assembly inline into the C function (or call your asm routine from inline asm in the C function), letting the C compiler handle the calling conventions and such for you. I realize this may be obvious, or may not work for you, but it’s what I would do.

Well ,some time passed since I posted it.I tried HLA assembly language .Wrote some fast computation math demo lib,compiled to DLL and just put into Unity.Worked like a charm .No inlining in C . Microsoft ASM is a horrible language .I liked HLA very much .While it provides some level of abstraction (so you don’t have to write everything using opcodes ) when it is compiled it becomes as optimized as any ASM . Of course it still depends on the coder proficiency to get the most efficient code. One thing to note ,HLA has its own standard lib.If you want your dll working flawlessly in Unity ,don’t use the std .