Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
VisualShaderNodeIntParameter
继承: VisualShaderNodeParameter < VisualShaderNode < Resource < RefCounted < Object
int 类型着色器参数(uniform)的可视化着色器节点。
描述
int 类型的 VisualShaderNodeParameter。可以自定义能够接受的值的范围。
属性
|
||
|
||
|
||
|
||
|
||
|
||
|
枚举
enum Hint: 🔗
Hint HINT_NONE = 0
参数的取值没有约束。
Hint HINT_RANGE = 1
Hint HINT_RANGE_STEP = 2
参数的取值必须在指定的范围内,值与值之间的步长为给定的 step。
Hint HINT_ENUM = 3
参数使用枚举将预设值与编辑器中的名称进行关联。
Hint HINT_MAX = 4
代表 Hint 枚举的大小。
属性说明
这个参数的默认值,外部没有设值时使用。必须启用 default_value_enabled;否则默认为 0
。
bool default_value_enabled = false
🔗
如果为 true
,则该节点有自定义默认值。
PackedStringArray enum_names = PackedStringArray()
🔗
void set_enum_names(value: PackedStringArray)
PackedStringArray get_enum_names()
用于在编辑器中选择枚举的名称。hint 必须为 HINT_ENUM 才能生效。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
该节点的范围提示。请用它来自定义有效的参数范围。
这个参数所能接受的最大值。hint 必须为 HINT_RANGE 或 HINT_RANGE_STEP 才会生效。
这个参数所能接受的最小值。hint 必须为 HINT_RANGE 或 HINT_RANGE_STEP 才会生效。
参数值之间的步长。迫使参数成为给定值的倍数。hint 必须为 HINT_RANGE_STEP 才能生效。