xian's

免费使用UnityHub
暂时无可提供的摘要
扫描右侧二维码阅读全文
14
2019/05

免费使用UnityHub

Head Pic:【ご注文はうさぎですか?】「チノちゃんトートバッグ」/「kino★きのこのみ」


原文:https://forum.cgpersia.com/f13/unipatcher2018-unity-v2018-win64-167751/index2.html#85

  • 安装UnityHub
  • 安装nodejs

点击下载UnityHub

点击下载nodejs 10.15.3 长期支持版

安装nodejs后执行以下命令

npm install -g asar

打开UnityHub安装目录,如C:\Program Files\Unity Hub\resources
点击文件-->打开Windows PowerShell,执行以下命令解压app.asar

asar extract .\app.asar app

解压后删除app.asar

修改Unity Hub\resources\app\src\services\licenseService\licenseClient.js

getLicenseInfo(callback) {
    // load license
    // get latest data from licenseCore
    //licenseInfo.activated = licenseCore.getLicenseToken().length > 0;//注释这行
    licenseInfo.activated = true;//新增这行
    licenseInfo.flow = licenseCore.getLicenseKind();
    licenseInfo.label = licenseCore.getLicenseKind(true);
    licenseInfo.offlineDisabled = licenseCore.offlineDisabled;
    licenseInfo.transactionId = licenseCore.getTransactionId();
}

Unity Hub\resources\app\src\services\licenseService\licenseCore.js

verifyLicenseData(xml, newfile = false) {
    return new Promise((resolve, reject) => {
        resolve(true);//新增这行
        if (xml === '') {
            this.licenseStatus = LICENSE_STATUS.kLicenseErrorFlag_NoLicense;
            reject();
            return;
        }
    }
}

Last modification:May 15th, 2019 at 12:55 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment