Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
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 ( int id, int type, String name ) |
void |
add_output_port ( int id, int type, String name ) |
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 ( int id ) const |
|
has_output_port ( int id ) const |
|
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 ) |
Method Descriptions¶
void add_input_port ( int id, int type, String name )
Adds an input port with the specified type
(see PortType) and name
.
void add_output_port ( int id, int type, String name )
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 ( )