Fix for Unity Black Window on Startup

If you install Unity on a secondary hard drive, you may experience the problem where Unity opens to a black dialog window only, with no menus or anything. Here is the fix:

  1. Get code from below (or from source here)
  2. Modify set UNITY_PATH=C:Program FilesUnity to match your install location
  3. Put the text in a bat file and run it
  4. Unity should work now

 Code copied here:
—————————————–

set UNITY_PATH=C:Program FilesUnity

set UNITY_EDITOR_PATH=%UNITY_PATH%Editor
set UNITY_7Z=%UNITY_EDITOR_PATH%DataTools7z.exe
set UNITY_PACKAGES_PATH=%UNITY_EDITOR_PATH%DataResourcesPackages

set UNITY_ROAMING=%HOMEDRIVE%%HOMEPATH%AppDataRoamingUnity
set UNITY_ROAMING_PACKAGES=%HOMEDRIVE%%HOMEPATH%AppDataRoamingUnityPackages
set UNITY_ROAMING_NODEMODULES=%HOMEDRIVE%%HOMEPATH%AppDataRoamingUnityPackagesnode_modules

rmdir /s /q “%UNITY_ROAMING_PACKAGES%”

mkdir “%UNITY_ROAMING%”
mkdir “%UNITY_ROAMING_PACKAGES%”

copy /Y “%UNITY_PACKAGES_PATH%package.json”…

Read more

Leave a Comment