Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

914 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 example code represents one possible outcome of this node.

float _Boolean = 1;