Skip to content

VisualShaderNodeFrame

Inherits: VisualShaderNodeResizableBase < VisualShaderNode < Resource < RefCounted < Object

A frame other visual shader nodes can be attached to for better organization.

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.

Type Name Default
PackedInt32Array attached_nodes PackedInt32Array()
bool autoshrink true
Color tint_color Color(0.3, 0.3, 0.3, 0.75)
bool tint_color_enabled false
String title "Title"
Returns Method
void add_attached_node(node: int)
void remove_attached_node(node: int)

attached_nodes

PackedInt32Array attached_nodes = PackedInt32Array()

The list of nodes attached to the frame.

autoshrink

bool autoshrink = true

If true, the frame will automatically resize to enclose all attached nodes.

tint_color

Color tint_color = Color(0.3, 0.3, 0.3, 0.75)

The color of the frame when tint_color_enabled is true.

tint_color_enabled

bool tint_color_enabled = false

If true, the frame will be tinted with the color specified in tint_color.

title

String title = "Title"

The title of the node.

add_attached_node

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.

remove_attached_node

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.