with your proxy server URL, and adjusting the Hub install path as needed:
Code (csharp):
@echo off
set HTTP_PROXY=proxy-url
set HTTPS_PROXY=proxy-url
start """C:Program FilesUnity HubUnity Hub.exe"
Save the file to a location where you can easily find it (e.g. the Desktop), and make sure the file has the
.cmd
(e.g.
launchUnityHub.cmd
).
Double-click the file to launch the Hub with the environment variables set, or invoke it from the command prompt for the same effect. These environment variables will be passed on to any Unity Editor process launched from the Hub.