Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

VisualShaderNodeBooleanConstant

继承: VisualShaderNodeConstant < VisualShaderNode < Resource < RefCounted < Object

在可视化着色器图中使用的布尔常量。

描述

只有一个输出端口,没有输入。

在着色器语言中被转换成 bool

属性

bool

constant

false


属性说明

bool constant = false

  • void set_constant ( bool value )

  • bool get_constant ( )

布尔常量,表示该节点的状态。