Click or drag to resize

VisualShaderNodeCustom_GetInputPortName Method

Override this method to define the names of input ports of the associated custom node. The names are used both for the input slots in the editor and as identifiers in the shader code, and are passed in the input_vars array in _GetCode(Array, Array, Int32, Int32).

Defining this method is optional, but recommended. If not overridden, input ports are named as "in" + str(port).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual string _GetInputPortName(
	int port
)

Parameters

port
Type: SystemInt32

[Missing <param name="port"/> documentation for "M:Godot.VisualShaderNodeCustom._GetInputPortName(System.Int32)"]

Return Value

Type: String

[Missing <returns> documentation for "M:Godot.VisualShaderNodeCustom._GetInputPortName(System.Int32)"]

See Also