Files
Test/Library/PackageCache/com.unity.shadergraph@8b7e693cdbfe/Documentation~/Utility-Nodes.md
T
2026-11-01 23:39:55 +02:00

1.6 KiB

Utility nodes

Explore nodes that enable essential logic operations, customization with HLSL, complex math expressions, and previews.

Topic Description
Custom Function Returns the results of a custom HLSL function specified as a string or in a referenced file.
Expression Returns the result of a custom mathematical expression specified as a string.
Preview Provides a preview window and passes the input value through without modification.

Logic

Topic Description
All Returns true if all components of the input In are non-zero.
And Returns true if both the inputs A and B are true.
Any Returns true if any of the components of the input In are non-zero.
Branch Provides a dynamic branch to the shader.
Comparison Compares the two input values A and B based on the condition selected on the dropdown.
Is Infinite Returns true if any of the components of the input In is an infinite value.
Is NaN Returns true if any of the components of the input In is not a number (NaN).
Nand Returns true if both the inputs A and B are false.
Not Returns the opposite of input In. If In is true, the output is false. Otherwise, it returns true.
Or Returns true if either input A or input B is true.
Switch Enables branching based on different cases with value comparisons.