Steps to reproduce:
- Create a new URP Project with OpenGL set as Graphics API
- Enter Play Mode
- Open Preferences for Shader Graph and toggle "Open new Shader Graphs automatically"
- Create any ShaderGraph Asset
- Exit Play Mode and Repeat steps 2-4 five to 6 times
Actual results:
When repeating steps 3-4 whilst in Play Mode, UI will break and start artifacting, Editor will have to be reloaded, Error is spammed: "Layout update is struggling to process current layout (consider simplifying to avoid recursive layout)"
Sometimes Error is logged: "ArgumentException: Getting control 0's position in a group with only 0 controls when doing repaint Aborting"
Expected results: Creating ShaderGraph Asset in Play Mode does not break Editor UI
Reproducible with versions: 6000.3.0b8, 6000.4.0b8, 6000.5.0a6
Can't test with: 6000.0.67f1 (No Preferences option feature)
Tested on (OS): Ubuntu 22.04
Notes:
- Could not reproduce this on Vulkan