Up to date
This page is up to date for Redot 4.3
.
If you still find outdated information, please create an issue.
VisualShaderNodeGroupBaseΒΆ
Inherits: VisualShaderNodeResizableBase < VisualShaderNode < Resource < RefCounted < Object
Inherited By: VisualShaderNodeExpression
Base class for a family of nodes with variable number of input and output ports within the visual shader graph.
DescriptionΒΆ
Currently, has no direct usage, use the derived classes instead.
MethodsΒΆ
void |
add_input_port(id: int, type: int, name: String) |
void |
add_output_port(id: int, type: int, name: String) |
void |
|
void |
|
get_free_input_port_id() const |
|
get_free_output_port_id() const |
|
get_input_port_count() const |
|
get_inputs() const |
|
get_output_port_count() const |
|
get_outputs() const |
|
has_input_port(id: int) const |
|
has_output_port(id: int) const |
|
is_valid_port_name(name: String) const |
|
void |
remove_input_port(id: int) |
void |
remove_output_port(id: int) |
void |
set_input_port_name(id: int, name: String) |
void |
set_input_port_type(id: int, type: int) |
void |
set_inputs(inputs: String) |
void |
set_output_port_name(id: int, name: String) |
void |
set_output_port_type(id: int, type: int) |
void |
set_outputs(outputs: String) |
Method DescriptionsΒΆ
void add_input_port(id: int, type: int, name: String) π
Adds an input port with the specified type
(see PortType) and name
.
void add_output_port(id: int, type: int, name: String) π
Adds an output port with the specified type
(see PortType) and name
.
void clear_input_ports() π
Removes all previously specified input ports.
void clear_output_ports() π
Removes all previously specified output ports.
int get_free_input_port_id() const π
Returns a free input port ID which can be used in add_input_port.
int get_free_output_port_id() const π
Returns a free output port ID which can be used in add_output_port.
int get_input_port_count() const π
Returns the number of input ports in use. Alternative for get_free_input_port_id.
String get_inputs() const π
Returns a String description of the input ports as a colon-separated list using the format id,type,name;
(see add_input_port).
int get_output_port_count() const π
Returns the number of output ports in use. Alternative for get_free_output_port_id.
String get_outputs() const π
Returns a String description of the output ports as a colon-separated list using the format id,type,name;
(see add_output_port).
bool has_input_port(id: int) const π
Returns true
if the specified input port exists.
bool has_output_port(id: int) const π
Returns true
if the specified output port exists.
bool is_valid_port_name(name: String) const π
Returns true
if the specified port name does not override an existed port name and is valid within the shader.
void remove_input_port(id: int) π
Removes the specified input port.
void remove_output_port(id: int) π
Removes the specified output port.
void set_input_port_name(id: int, name: String) π
Renames the specified input port.
void set_input_port_type(id: int, type: int) π
Sets the specified input port's type (see PortType).
void set_inputs(inputs: String) π
Defines all input ports using a String formatted as a colon-separated list: id,type,name;
(see add_input_port).
void set_output_port_name(id: int, name: String) π
Renames the specified output port.
void set_output_port_type(id: int, type: int) π
Sets the specified output port's type (see PortType).
void set_outputs(outputs: String) π
Defines all output ports using a String formatted as a colon-separated list: id,type,name;
(see add_output_port).