Unity源码编译
Posted on 周一 20 四月 2020 in 编程语言
编译
我的源码是2018.4.4版本
- 安装32位的perl
- 安装vs2017
- 源码目录运行
perl build.pl -prepare
- 使用vs2017打开
Projects\VisualStudio\AllTargets.sln
, 编译运行
跳过授权
使用现有Unity授权文件, 位于C:\ProgramData\Unity\Unity_lic.ulf
, 然后更改如下几个授权判断的函数:
int LicenseInfo::ValidateDates(TiXmlDocument& doc);
int LicenseInfo::ValidateMachineBindings(TiXmlDocument& doc);
bool LicenseInfo::ValidateLicenseType(TiXmlDocument& doc);
bool LicenseInfo::ValidateLicenseDocument(TiXmlDocument& doc, const core::string& licenseData);
将这几个函数直接返回验证通过的值就可以了。