This is an Unity SubGraph specifically designed for debugging in the ShaderGraph Window. It's incredibly easy to set up and use.
All the code in this repository is based on the work of aras-p and bestknighter as seen in DebugNode.hlsl.
Follow these simple steps to get started:
- Download the package and import it into your Unity project.
- Drag the subgraph into the ShaderGraph window.
- Link the input value you want to debug.
The subgraph has two input parameters:
- DebugValue (float) : This is the value you want to debug. The value will be displayed in the subgraph preview.
- DecimalDigits (float) : This is the number of decimal digits that the debugged value will display in the subgraph preview.
Here's an example of how it looks: