Engine Issues
This section provides information on typical errors displayed in the Engine log and explains how to fix them.
Agility SDK#
When running the upgraded project on DX12, you may come accross the following error in the engine log:
ERROR: Engine::init(): using D3D12 without Agility SDK is not supported. Please export `D3D12SDKVersion` and `D3D12SDKPath` in your executable. Falling back to Vulkan
This error occurs because starting from version 2.20, we use the Agility SDK to unlock the full potential of DirectX12. Therefore, patching is required to ensure the upgraded project runs smoothly on D3D12.
If the project after being patched and rebuilt still doesn't run on D3D12 and this error keeps being displayed, try the following:
On C++:
-
Open the <project_name>/source/main.cpp file and check if it contains the following line:
Source code (C++)#include <UnigineInit.h>
Add it, if it's missing.
-
Check if the project contains the <project_name>/bin/D3D12 folder with the following files:
- D3D12Core.dll
- D3D12Core.pdb
- D3D12SDKLayers.dll
- D3D12SDKLayers.pdb
On C#:
-
Open the <project_name>/<project_name>.csproj file and check if it contains the following lines:
Source code (XML)<UseAppHost>true</UseAppHost> <AppHostSourcePath Condition="'$(OS)' == 'Windows_NT'">$(OutputPath)\dotnet_host_x64.exe</AppHostSourcePath>
Add them, if missing.
-
In case of .vscode, open <project_name>/.vscode/launch.json, and make sure that Windows projects are started via <project_name>.exe.
-
Check that the project contains the <project_name>/bin/D3D12 folder with the following files:
- D3D12Core.dll
- D3D12Core.pdb
- D3D12SDKLayers.dll
- D3D12SDKLayers.pdb
- Check that the dotnet_host_x64.exe file is available in the <project_name>/bin/ folder.
The information on this page is valid for UNIGINE 2.20 SDK.