summaryrefslogtreecommitdiffstats
path: root/modules/mono
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-16 14:32:20 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-16 14:32:20 +0200
commit0bf8bee544eb8fe08816c44b0dabb25108ac609a (patch)
treec81d85e3505eff8c4dbfc1bc8ac203fca7ce62fd /modules/mono
parent7865266f24fe0a0c0d4d6119c23c5799b89c173b (diff)
parent74389e83957ab9476389077d020a047f5831bab7 (diff)
downloadredot-engine-0bf8bee544eb8fe08816c44b0dabb25108ac609a.tar.gz
Merge pull request #94693 from jonatanrojderd/master
[C#] Change the `VisualShaderNodeCustom` template to use the correct override types and signatures
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/editor/script_templates/VisualShaderNodeCustom/basic.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/mono/editor/script_templates/VisualShaderNodeCustom/basic.cs b/modules/mono/editor/script_templates/VisualShaderNodeCustom/basic.cs
index cd335934db..ece1ab44a2 100644
--- a/modules/mono/editor/script_templates/VisualShaderNodeCustom/basic.cs
+++ b/modules/mono/editor/script_templates/VisualShaderNodeCustom/basic.cs
@@ -3,6 +3,8 @@
using _BINDINGS_NAMESPACE_;
using System;
+[Tool]
+[GlobalClass]
public partial class VisualShaderNode_CLASS_ : _BASE_
{
public override string _GetName()
@@ -20,37 +22,37 @@ public partial class VisualShaderNode_CLASS_ : _BASE_
return "";
}
- public override long _GetReturnIconType()
+ public override VisualShaderNode.PortType _GetReturnIconType()
{
return 0;
}
- public override long _GetInputPortCount()
+ public override int _GetInputPortCount()
{
return 0;
}
- public override string _GetInputPortName(long port)
+ public override string _GetInputPortName(int port)
{
return "";
}
- public override long _GetInputPortType(long port)
+ public override VisualShaderNode.PortType _GetInputPortType(int port)
{
return 0;
}
- public override long _GetOutputPortCount()
+ public override int _GetOutputPortCount()
{
return 1;
}
- public override string _GetOutputPortName(long port)
+ public override string _GetOutputPortName(int port)
{
return "result";
}
- public override long _GetOutputPortType(long port)
+ public override VisualShaderNode.PortType _GetOutputPortType(int port)
{
return 0;
}