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...
VisualShaderNodeFrame
继承: VisualShaderNodeResizableBase < VisualShaderNode < Resource < RefCounted < Object
能够附加其他可视化着色器节点的框架,方便组织节点。
描述
一种矩形框架,能够将可视化着色器节点进行分组,方便组织。
拖动框架时,附加到框架的节点会跟随框架移动;框架会自动调整大小,包围所有附加的节点。
可以自定义标题、描述以及颜色。
属性
|
||
|
||
|
||
|
||
|
方法
void |
add_attached_node(node: int) |
void |
remove_attached_node(node: int) |
属性说明
PackedInt32Array attached_nodes = PackedInt32Array()
🔗
void set_attached_nodes(value: PackedInt32Array)
PackedInt32Array get_attached_nodes()
附加到框的节点列表。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.
如果为 true
,该框将自动调整大小以包含所有附加的节点。
Color tint_color = Color(0.3, 0.3, 0.3, 0.75)
🔗
框架在 tint_color_enabled 为 true
时的颜色。
bool tint_color_enabled = false
🔗
如果为 true
,则该框将使用 tint_color 中指定的颜色进行着色。
节点的标题。
方法说明
void add_attached_node(node: int) 🔗
将节点添加到框架附加节点列表中。不应该直接调用,请改用 VisualShader.attach_node_to_frame()。
void remove_attached_node(node: int) 🔗
将节点从框架附加节点列表中移除。不应该直接调用,请改用 VisualShader.detach_node_from_frame()。