diff options
author | Yuri Roubinski <chaosus89@gmail.com> | 2023-06-22 10:33:40 +0300 |
---|---|---|
committer | Yuri Roubinski <chaosus89@gmail.com> | 2023-07-20 15:00:19 +0300 |
commit | 01101134f4fd4e6073e19473f8e1cd3ab68c8edd (patch) | |
tree | 0fa15f63d55048154ff1552ea6f97865458e0fdf /doc/classes/VisualShaderNodeCustom.xml | |
parent | 0c2144da908a8223e188d27ed1d31d8248056c78 (diff) | |
download | redot-engine-01101134f4fd4e6073e19473f8e1cd3ab68c8edd.tar.gz |
Make the dragging connections more user-friendly in visual shaders
Diffstat (limited to 'doc/classes/VisualShaderNodeCustom.xml')
-rw-r--r-- | doc/classes/VisualShaderNodeCustom.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/VisualShaderNodeCustom.xml b/doc/classes/VisualShaderNodeCustom.xml index 480f7dfe0e..8a90d5dd0f 100644 --- a/doc/classes/VisualShaderNodeCustom.xml +++ b/doc/classes/VisualShaderNodeCustom.xml @@ -37,6 +37,14 @@ Defining this method is [b]required[/b]. </description> </method> + <method name="_get_default_input_port" qualifiers="virtual const"> + <return type="int" /> + <param index="0" name="type" type="int" enum="VisualShaderNode.PortType" /> + <description> + Override this method to define the input port which should be connected by default when this node is created as a result of dragging a connection from an existing node to the empty space on the graph. + Defining this method is [b]optional[/b]. If not overridden, the connection will be created to the first valid port. + </description> + </method> <method name="_get_description" qualifiers="virtual const"> <return type="String" /> <description> |