Steps to reproduce:
- Create a URP 3D Project
- Import the attached .hlsl file
- In the Project Browser create an Empty Shader Graph
- In the Workspace Create a "AddSaturate" Node and select it
- Open the .hlsl file in your IDE
- Edit the syntax of the .hlsl file so that it's invalid (e.g. remove brackets from "
float3 ScaleFloat3(float3 value, float scale)")
- Focus the Editor so that it recompiles (without clicking in the Workspace as to not to unfocus the Node)
- Observe the Graph Inspector, then reselect the AddSaturate Node and observe the Graph Inspector again
Actual results: Graph Inspector is not repainted when Editor recompiles and the .hlsl file is invalid, the Node itself does repaint and shows that there's an issue, but the Node has to be reselected so that the Graph Inspector is repainted to show the "Could not find 'SG.Test.AddSaturate' in 'Assets/TestShaderFunctions.hlsl'."
Expected results: Graph Inspector is repainted when Node's code is invalid so that users are immediately presented with the "Could not find 'SG.Test.AddSaturate' in 'Assets/TestShaderFunctions.hlsl'." Error
Reproducible with versions: 6000.5.0a8, 6000.5.0b10, 6000.6.0a6
Cannot test with versions: 6000.0.76f1, 6000.3.16f1, 6000.4.9f1, 6000.5.0a7 (No Shader Include Nodes creation in the Workspace feature)
Tested on (OS): Windows 11