VisualShaderNodeGroupBase

Refreshing Cache...

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.

Description

Currently, has no direct usage, use the derived classes instead.

Properties

Vector2sizeVector2( 0, 0 )

Property Descriptions

DefaultVector2( 0, 0 )
Setterset_size(value)
Getterget_size()

The size of the node in the visual shader graph.

Method Descriptions

Adds an input port with the specified type (see PortType) and 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 ( ) 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.


Returns a String description of the input ports as as 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.


Returns a String description of the output ports as as colon-separated list using the format id,type,name; (see add_output_port).


  • bool has_input_port ( int id ) const

Returns true if the specified input port exists.


  • bool has_output_port ( int id ) const

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.


  • void remove_input_port ( int id )

Removes the specified input port.


  • void remove_output_port ( int id )

Removes the specified output port.


  • void set_input_port_name ( int id, String name )

Renames the specified input port.


  • void set_input_port_type ( int id, int type )

Sets the specified input port’s type (see PortType).


  • void set_inputs ( String inputs )

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 ( int id, String name )

Renames the specified output port.


  • void set_output_port_type ( int id, int type )

Sets the specified output port’s type (see PortType).


  • void set_outputs ( String outputs )

Defines all output ports using a String formatted as a colon-separated list: id,type,name; (see add_output_port).

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:44:24. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.