With Unity 2022.2.17f1 and URP 14.0.7 I can’t get Dynamic Resolution to render correctly on either windows (DX12) nor Android (Vulcan).
Depending on platform and settings I end up with a black screen, some g-buffer or the z buffer rendered to the Game view.
I create a small repo case that show the same issue:
- Create new 2022.2.17f1 project based on 3D (URP)
- Open Project settings, Player, Windows Mac Linux Settings, Other Settings, disable Auto Graphics API for Windows, Add DX12, Remove DX11, Restart editor.
- Select Main Camera in Hierarchy, In Output enable Allow Dynamic Resolution.
- Observe that Game view turns black.
- Log is now full of asserts and null crashes:
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Value cannot be null.
Parameter name: value
UnityEngine.MaterialPropertyBlock.SetTexture (System.Int32 nameID, UnityEngine.Texture value)
- Not sure if the assets are due to a broken template project?, but to supress/fix the errors: disable Post-processing in all “URP-*-Render” assets.
- Place a unit sphere in 0,0,0 and observe that some G-buffer seems to be rendered when “Allow Dynamic Resolution” is enabled.