Inherits: VisualShaderNode < Resource < Reference < Object
Inherited By: VisualShaderNodeExpression
Base class for a family of nodes with variable amount of input and output ports within the visual shader graph.
Currently, has no direct usage, use the derived classes instead.
Vector2 | size | Vector2( 0, 0 ) |
void | add_input_port ( int id, int type, String name ) |
void | add_output_port ( int id, int type, String name ) |
void | clear_input_ports ( ) |
void | clear_output_ports ( ) |
int | get_free_input_port_id ( ) const |
int | get_free_output_port_id ( ) const |
int | get_input_port_count ( ) const |
String | get_inputs ( ) const |
int | get_output_port_count ( ) const |
String | get_outputs ( ) const |
bool | has_input_port ( int id ) const |
bool | has_output_port ( int id ) const |
bool | is_valid_port_name ( String name ) const |
void | remove_input_port ( int id ) |
void | remove_output_port ( int id ) |
void | set_input_port_name ( int id, String name ) |
void | set_input_port_type ( int id, int type ) |
void | set_inputs ( String inputs ) |
void | set_output_port_name ( int id, String name ) |
void | set_output_port_type ( int id, int type ) |
void | set_outputs ( String outputs ) |
Default | Vector2( 0, 0 ) |
Setter | set_size(value) |
Getter | get_size() |
The size of the node in the visual shader graph.
Adds an input port with the specified type
(see PortType) and name
.
Adds an output port with the specified type
(see PortType) and name
.
Removes all previously specified input ports.
Removes all previously specified output ports.
Returns a free input port ID which can be used in add_input_port.
Returns a free output port ID which can be used in add_output_port.
Returns the number of input ports in use. Alternative for get_free_input_port_id.
Returns a String description of the input ports as as colon-separated list using the format id,type,name;
(see add_input_port).
Returns the number of output ports in use. Alternative for get_free_output_port_id.
Returns a String description of the output ports as as colon-separated list using the format id,type,name;
(see add_output_port).
Returns true
if the specified input port exists.
Returns true
if the specified output port exists.
Returns true
if the specified port name does not override an existed port name and is valid within the shader.
Removes the specified input port.
Removes the specified output port.
Renames the specified input port.
Sets the specified input port's type (see PortType).
Defines all input ports using a String formatted as a colon-separated list: id,type,name;
(see add_input_port).
Renames the specified output port.
Sets the specified output port's type (see PortType).
Defines all output ports using a String formatted as a colon-separated list: id,type,name;
(see add_output_port).
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualshadernodegroupbase.html