Skip to content

WillardPeng/DebugSubGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

33e7e98 · Jun 25, 2023

History

6 Commits
Jun 23, 2023
Jun 23, 2023
Jun 25, 2023

Repository files navigation

DebugSubGraph

This is an Unity SubGraph specifically designed for debugging in the ShaderGraph Window. It's incredibly easy to set up and use.

Credits

All the code in this repository is based on the work of aras-p and bestknighter as seen in DebugNode.hlsl.

How to Use

Follow these simple steps to get started:

  1. Download the package and import it into your Unity project.
  2. Drag the subgraph into the ShaderGraph window.
  3. Link the input value you want to debug.

The subgraph has two input parameters:

  1. DebugValue (float) : This is the value you want to debug. The value will be displayed in the subgraph preview.
  2. 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:

image