Steps to reproduce:
- Create a URP 3D Project
- In the Project Browser create an Empty Shader Graph and select it
- In the Inspector toggle the "Use As Template" flag
- In the Project Browser create a Shader Graph "From Template"
- In the Project Browser delete the Empty Shader Graph
- In the Shader Graph Template Browser select the Empty Shader Graph Template and create a Shader Graph from it
Actual results: Errors "FileUtil.ReadAllBytes: Failed to open file 'Assets/New Shader Graph.shadergraph'
UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&)" & "Could not find template at 'D:\Projects\My project (2312)\Assets\New Shader Graph.shadergraph'
UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&)" are logged
Expected results: Shader Graph Template Window checks if the Template has been deleted before trying to Create a Shader Graph from it, no Errors are logged and users are informed that the Template cannot be found via dialog or Templates Window is updated when Templates are deleted
Reproducible with versions: 6000.3.0a6, 6000.6.0a1, 6000.6.0a6
Fixed in: 6000.3.16f1, 6000.4.9f1, 6000.5.0b9 (Dialog is shown, users can cancel, only File.ReadAllBytes - failed to open for reading
UnityEngine.GUIUtility:ProcessEvent (UnityEngine.EntityId,intptr,bool&) Error is logged)
Can't test with versions 6000.0.76f1, 6000.3.0a5 (the feature wasn't implemented yet)
Tested on (OS): Windows 11