VisualShaderNodeFrame
继承: 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.
属性
方法
void | add_attached_node ( node: int ) |
void | remove_attached_node ( node: int ) |
属性说明
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.
bool
autoshrink = true
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
.
String
title = "Title"
The title of the 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.
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.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。