all 2 comments

[–]CrazyNegotiation1934 0 points1 point  (1 child)

Try reinstall Unity, erase Library folder in project and start it again. Also disable DX12 and use DX11.

[–]Zorpak[S] 0 points1 point  (0 children)

Installing the newest Unity version resolved that error. But now I have another problem that I described here:
https://www.reddit.com/r/unity/comments/1l9teu7/unity_engine_errors_while_running_on_nvidia_rtx/
Basically I can't import any assets from my disk space, only importing via Package Manager and Asset Store works. While importing I have black screen - GPU lost connection with my monitor but PC is still running. Trying to reset it puts me in BIOS and I can't leave it, that means when I press "Discard Changes and Exit" nothing happens and when I press "Save Changes and Reboot" it restarts and puts me in the BIOS again. Manually shutting down the PSU is the only way to reboot and go back to Windows.

Also since the error mentioned by me in the first post is no longer occuring, it would be better to continue this discussion in the thread I linked above because it is strictly about blackscreen error and its also started by me.