Table of Contents

Class VisualShaderNodeGroupBase

Namespace
Godot
Assembly
GodotSharp.dll

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

public class VisualShaderNodeGroupBase : VisualShaderNodeResizableBase, IDisposable
Inheritance
VisualShaderNodeGroupBase
Implements
Derived
Inherited Members

Methods

AddInputPort(int, int, string)

Adds an input port with the specified type (see VisualShaderNode.PortType) and name.

public void AddInputPort(int id, int type, string name)

Parameters

id int
type int
name string

AddOutputPort(int, int, string)

Adds an output port with the specified type (see VisualShaderNode.PortType) and name.

public void AddOutputPort(int id, int type, string name)

Parameters

id int
type int
name string

ClearInputPorts()

Removes all previously specified input ports.

public void ClearInputPorts()

ClearOutputPorts()

Removes all previously specified output ports.

public void ClearOutputPorts()

GetFreeInputPortId()

Returns a free input port ID which can be used in AddInputPort(int, int, string).

public int GetFreeInputPortId()

Returns

int

GetFreeOutputPortId()

Returns a free output port ID which can be used in AddOutputPort(int, int, string).

public int GetFreeOutputPortId()

Returns

int

GetInputPortCount()

Returns the number of input ports in use. Alternative for GetFreeInputPortId().

public int GetInputPortCount()

Returns

int

GetInputs()

Returns a string description of the input ports as a colon-separated list using the format id,type,name; (see AddInputPort(int, int, string)).

public string GetInputs()

Returns

string

GetOutputPortCount()

Returns the number of output ports in use. Alternative for GetFreeOutputPortId().

public int GetOutputPortCount()

Returns

int

GetOutputs()

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

public string GetOutputs()

Returns

string

HasGodotClassMethod(in godot_string_name)

Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.

protected override bool HasGodotClassMethod(in godot_string_name method)

Parameters

method godot_string_name

Name of the method to check for.

Returns

bool

HasGodotClassSignal(in godot_string_name)

Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.

protected override bool HasGodotClassSignal(in godot_string_name signal)

Parameters

signal godot_string_name

Name of the signal to check for.

Returns

bool

HasInputPort(int)

Returns true if the specified input port exists.

public bool HasInputPort(int id)

Parameters

id int

Returns

bool

HasOutputPort(int)

Returns true if the specified output port exists.

public bool HasOutputPort(int id)

Parameters

id int

Returns

bool

InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)

Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.

protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)

Parameters

method godot_string_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool

IsValidPortName(string)

Returns true if the specified port name does not override an existed port name and is valid within the shader.

public bool IsValidPortName(string name)

Parameters

name string

Returns

bool

RemoveInputPort(int)

Removes the specified input port.

public void RemoveInputPort(int id)

Parameters

id int

RemoveOutputPort(int)

Removes the specified output port.

public void RemoveOutputPort(int id)

Parameters

id int

SetInputPortName(int, string)

Renames the specified input port.

public void SetInputPortName(int id, string name)

Parameters

id int
name string

SetInputPortType(int, int)

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

public void SetInputPortType(int id, int type)

Parameters

id int
type int

SetInputs(string)

Defines all input ports using a string formatted as a colon-separated list: id,type,name; (see AddInputPort(int, int, string)).

public void SetInputs(string inputs)

Parameters

inputs string

SetOutputPortName(int, string)

Renames the specified output port.

public void SetOutputPortName(int id, string name)

Parameters

id int
name string

SetOutputPortType(int, int)

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

public void SetOutputPortType(int id, int type)

Parameters

id int
type int

SetOutputs(string)

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

public void SetOutputs(string outputs)

Parameters

outputs string