纳金网

标题: 【分享】Unity3d调用 DLL [打印本页]

作者: 王者再临    时间: 2013-8-16 03:36
标题: 【分享】Unity3d调用 DLL

JS代码
import System;
import System.Runtime.InteropServices;
@DllImport("user32.dll")
public static function MessageBox(Hwnd : int,text : String,Caption : String,iType : int) : int {};
function Start()
{
        MessageBox(0, "API Message Box", "Win32 API", 64) ;
}
function Update () {
}
作者: unity3D13    时间: 2013-8-16 10:25
可以支持中文吗?
作者: libufan    时间: 2013-8-16 10:59
不知道为啥Unity里面也是C#,但是有很多却需要外调啊什么的,上次我想试试串口来着,总是提示不支持,不知道为啥
作者: animan    时间: 2013-8-16 21:05
感覺非常實用~
作者: 毛毛虫    时间: 2013-8-16 23:48
好文章,谢谢分享!
作者: 天空小飞龙    时间: 2013-8-16 23:53
好的 学习啦哈哈
作者: kekeshuai    时间: 2013-8-17 14:01
老生常谈了
作者: xizhenlong    时间: 2015-1-21 16:32
其实还有一种方式        




欢迎光临 纳金网 (http://c-www.narkii.com/club/) Powered by Discuz! X2.5