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
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
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
GetFreeOutputPortId()
Returns a free output port ID which can be used in AddOutputPort(int, int, string).
public int GetFreeOutputPortId()
Returns
GetInputPortCount()
Returns the number of input ports in use. Alternative for GetFreeInputPortId().
public int GetInputPortCount()
Returns
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
GetOutputPortCount()
Returns the number of output ports in use. Alternative for GetFreeOutputPortId().
public int GetOutputPortCount()
Returns
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
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_nameName of the method to check for.
Returns
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_nameName of the signal to check for.
Returns
HasInputPort(int)
Returns true
if the specified input port exists.
public bool HasInputPort(int id)
Parameters
id
int
Returns
HasOutputPort(int)
Returns true
if the specified output port exists.
public bool HasOutputPort(int id)
Parameters
id
int
Returns
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_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.
Returns
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
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
SetInputPortType(int, int)
Sets the specified input port's type (see VisualShaderNode.PortType).
public void SetInputPortType(int id, int type)
Parameters
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
SetOutputPortType(int, int)
Sets the specified output port's type (see VisualShaderNode.PortType).
public void SetOutputPortType(int id, int type)
Parameters
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