robot_2Generated
code_blocksInput

Description

The Bool field is a member of the NodeResultType enumeration within the Editor.ShaderGraph namespace. This enumeration is used to specify the type of result that a node in a shader graph can produce. The Bool type indicates that the node's output is a boolean value, which can be either true or false.

Usage

Use the NodeResultType.Bool when you need to define or check for a boolean output type in a shader graph node. This is particularly useful when creating conditional logic within shader graphs, where a boolean value is required to determine the flow or outcome of a shader operation.

Example

// Example of using NodeResultType.Bool in a shader graph context

// Assume we are defining a custom shader node
public class CustomShaderNode : ShaderNode
{
    public override NodeResultType GetNodeResultType()
    {
        // This node outputs a boolean value
        return NodeResultType.Bool;
    }

    // Additional logic for the shader node
}