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
Remarks
- void set_attached_nodes(PackedInt32Array value)
- PackedInt32Array get_attached_nodes
autoshrink
If true
, the frame will automatically resize to enclose all attached nodes.
var autoshrink : bool = true
Property Value
Remarks
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
Remarks
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
Remarks
title
The title of the node.
var title : String = "Title"
Property Value
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