shader compiler issue with D3D Compiler_47.dll

I just installed Unity 6 and loaded a new project but it says /Shader compiler initialization error: Failed to read D3DCompiler DLL file
Something is preventing access to D3DCompiler_47.dll. Check your Editor installation integrity, file access rights and antivirus configuration./
I tried disabling my anti-virus and restarting my pc, but the same error occurred. I also tried running Unity in admin mode but there was a warning. Any fix?

Try uninstalling Unity and the Hub. Then disable your antivirus and reinstall Hub and Unity with the virus scanner disabled. Afterwards exclude the Unity installation folder and the project folder from virus scans before re-enabling it (personally I recommend uninstalling, Windows Defender is just as good as any other antivirus but far less intrusive).

Do not use “run as administrator” on the installers or the Hub/Editor. They are not supposed to run as administrator and doing so may cause issues (hence the warning).

1 Like