Table of Contents

Class VisualShaderNodeFrame

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

Inheritance
VisualShaderNodeFrame
Derived

Remarks

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

attached_nodes

The list of nodes attached to the frame.

var attached_nodes : PackedInt32Array = PackedInt32Array()

Property Value

PackedInt32Array

Remarks

autoshrink

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

var autoshrink : bool = true

Property Value

bool

Remarks

  • void set_autoshrink_enabled(bool value)
  • bool is_autoshrink_enabled

tint_color

The color of the frame when tint_color_enabled is true.

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

Property Value

Color

Remarks

  • void set_tint_color(Color value)
  • Color get_tint_color

tint_color_enabled

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

var tint_color_enabled : bool = false

Property Value

bool

Remarks

  • void set_tint_color_enabled(bool value)
  • bool is_tint_color_enabled

title

The title of the node.

var title : String = "Title"

Property Value

String

Remarks

Methods

add_attached_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 add_attached_node(int node)

Parameters

node int

remove_attached_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.

void remove_attached_node(int node)

Parameters

node int