UnityPlayer.dll文件的位置取决于您的Unity项目在哪里。通常,它位于以下目录中:
Windows 7, 8, 10: C:\Program Files\Unity\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations<Version>\Mono\UnityPlayer.dll
Mac: /Applications/Unity/PlaybackEngines/MacStandaloneSupport/UnityPlayer.app/Contents/MacOS/UnityPlayer
注意, "<Version>" 是您使用的Unity版本号。
unityplayer.dll控件常规安装方法(仅供参考)
一、如果在打开某软件系统提示、没有找到unityplayer.dll或者缺少unityplayer.dll等类似错误信息,你可以把下载来的unityplayer.dll拷贝到指定目录就可以了。
二、然后根据您系统的情况选择X86/X64,X86为32位电脑,X64为64位电脑。默认都是支持32位系统的,如果您不知道是X86还是X64,您可以看这篇文章。
三、直接拷贝该文件到系统目录里:
1、Windows 95/98/Me系统,将unityplayer.dll复制到C:\Windows\System目录下。
2、Windows NT/2000系统,将unityplayer.dll复制到C:\WINNT\System32目录下。
3、Windows XP/WIN7/win10系统(64位系统对应64位dll文件,32位系统对应32位dll文件),将unityplayer.dll复制到C:\Windows\System32目录下。
4、如果您的系统是64位的请将32位的dll文件复制到C:\Windows\SysWOW64目录。
四、然后打开"开始-运行-输入regsvr32 unityplayer.dll",回车即可解决错误提示。