Class reference
VisualShaderNodeFrame
Inherits VisualShaderNodeResizableBase
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 attached_nodes = PackedInt32Array()
PackedInt32Array attached_nodes = PackedInt32Array()The list of nodes attached to the frame.
bool autoshrink = true
bool autoshrink = trueIf true, the frame will automatically resize to enclose all attached nodes.
Color tint_color = Color(0.3, 0.3, 0.3, 0.75)
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
bool tint_color_enabled = falseIf true, the frame will be tinted with the color specified in tint_color.
String title = "Title"
String title = "Title"The title of the node.
Methods
void add_attached_node(int node)
int node)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(int node)
int node)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.