unity中调用dll文件总结
根据收集的资料,对unity中调用dll文件进行总结,目前常用的两种,在给出vs中封装dll文件的步骤。
一、调用c#中的dll文件
1.1封装dll文件
首先新建一个项目
然后创建一个类库,例如命名为Csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Csharp
{
public class Class1
{
public static string getName(string name)
{
return name;
}
}
}