arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.shadergraph@940512a5d7e1/Documentation~/Boolean-Node.md
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02:00

944 B

Boolean Node

Description

Defines a constant Boolean value in the Shader Graph, although internally to the shader this is treated as a constant float value that is ether 0 or 1, similar to Shaderlab's Toggle property. Can be converted to a Boolean type Property via the Node's context menu.

Ports

Name Direction Type Binding Description
Out Output Boolean None Output value

Controls

Name Type Options Description
Toggle Defines the output value.

Generated Code Example

The following basic test code represents one possible outcome of this node with the Boolean value set to 0:

float _Boolean = 0;