没有合适的资源?快使用搜索试试~ 我知道了~
2.在 Assets 下面创建一个 “Plugins” 文件夹, 将打包成的 dll 放进去,否则找不到。10 } 11
资源详情
资源评论
资源推荐
调用 dll 注意
Posted on 2013 年 05 月 15 日 by U3d / Unity3D 脚本/插件/被围观 27 次
1.DllImport 指定的 Plugin 名称里不要包括 .dll。
2.在 Assets 下面创建一个 “Plugins” 文件夹, 将打包成的 dll 放进去,否则找不
到。
01
using UnityEngine;
02
using System.Runtime.InteropServices;
03
04
class SomeScript : MonoBehaviour {
05
[DllImport ("PluginName")]
06
private static extern float FooPluginFunction ();
07
08
void Awake () {
09
print (FooPluginFunction ());
10
}
11
}
泡泡SOHO
- 粉丝: 21
- 资源: 294
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0