VisualShaderNodeGroupBase
Inherited By:
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
The size of the node in the visual shader graph.
- void add_input_port ( id, int type, name )
Adds an input port with the specified type
(see PortType) and name
.
- void add_output_port ( id, int type, name )
Adds an output port with the specified (see PortType) and name
.
Removes all previously specified input ports.
- void clear_output_ports ( )
- get_free_input_port_id ( ) const
Returns a free input port ID which can be used in add_input_port.
- get_free_output_port_id ( ) const
Returns a free output port ID which can be used in add_output_port.
- get_input_port_count ( ) const
Returns the number of input ports in use. Alternative for get_free_input_port_id.
- get_inputs ( ) const
Returns a String description of the input ports as as colon-separated list using the format id,type,name;
(see ).
- int get_output_port_count ( ) const
Returns the number of output ports in use. Alternative for .
- String get_outputs ( ) const
Returns a description of the output ports as as colon-separated list using the format id,type,name;
(see add_output_port).
- has_input_port ( int id ) const
Returns if the specified input port exists.
- is_valid_port_name ( String name ) 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 )
Removes the specified input port.
- void remove_output_port ( int id )
Removes the specified output port.
- void set_input_port_name ( id, String name )
Renames the specified input port.
- void set_input_port_type ( id, int type )
Sets the specified input port’s type (see ).
- void set_inputs ( String inputs )
Defines all input ports using a formatted as a colon-separated list: id,type,name;
(see add_input_port).
- void set_output_port_name ( id, String name )
Renames the specified output port.
- void set_output_port_type ( id, int type )
Defines all output ports using a formatted as a colon-separated list: (see add_output_port).