UnityHub break

1. Exit UnityHub, installed nodejs, "cmd" execute the following commands input Win + R

npm install -g asar

2. Open UnityHub installation directory such as C: \ Program Files \ Unity Hub \ resources.
3. In the C: \ Program Files \ Unity Hub \ resources to open a command line, execute the following command to decompress app.asar.

C:\Program Files\Unity Hub\resources> asar extract .\app.asar app

After extracting delete C: \ Program Files \ Unity Hub \ resources \ app.asar.
4. Modify the C: \ Program Files \ Unity Hub \ resources \ app \ src \ services \ licenseService \ licenseClient.js

getLicenseInfo (the callback) {
     // Load License
     // GET Latest Data from licenseCore
     // licenseInfo.activated = licenseCore.getLicenseToken () length> 0;. // comment line 
    licenseInfo.activated = to true ; // add this line 
    licenseInfo .flow = licenseCore.getLicenseKind ();

5.C:\Program Files\Unity Hub\resources\app\src\services\licenseService\licenseCore.js

verifyLicenseData (XML) {
     return  new new Promise ((Resolve, Reject) => { 
        Resolve ( to true ); // add this line 
      IF (XML === '' ) {

 

Guess you like

Origin www.cnblogs.com/unity3ds/p/11114026.html