VisualShaderNodeFrame ​
Inherits: VisualShaderNodeResizableBase < VisualShaderNode < Resource < RefCounted < Object
Inherited By: VisualShaderNodeComment
A frame other visual shader nodes can be attached to for better organization.
Description
A rectangular frame that can be used to group visual shader nodes together to improve organization.
Nodes attached to the frame will move with it when it is dragged and it can automatically resize to enclose all attached nodes.
Its title, description and color can be customized.
Properties
PackedInt32Array() | ||
true | ||
Color(0.3, 0.3, 0.3, 0.75) | ||
false | ||
"Title" |
Methods
void | add_attached_node(node: int) |
void | remove_attached_node(node: int) |
Property Descriptions
PackedInt32Array attached_nodes = PackedInt32Array() 🔗
void set_attached_nodes(value: PackedInt32Array)
PackedInt32Array get_attached_nodes()
The list of nodes attached to the frame.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.
If true
, the frame will automatically resize to enclose all attached nodes.
Color tint_color = Color(0.3, 0.3, 0.3, 0.75) 🔗
The color of the frame when tint_color_enabled is true
.
bool tint_color_enabled = false 🔗
If true
, the frame will be tinted with the color specified in tint_color.
The title of the node.
Method Descriptions
void add_attached_node(node: int) 🔗
Adds a node to the list of nodes attached to the frame. Should not be called directly, use the VisualShader.attach_node_to_frame method instead.
void remove_attached_node(node: int) 🔗
Removes a node from the list of nodes attached to the frame. Should not be called directly, use the VisualShader.detach_node_from_frame method instead.