Class reference

VisualShaderNodeGroupBase

Inherits VisualShaderNodeResizableBase

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 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().

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()).

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(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.

bool 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(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_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_outputs(String outputs)

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

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.