summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsboronczyk <stefan.amin.boronczyk@googlemail.com>2021-03-13 17:31:47 +0100
committersboronczyk <stefan.amin.boronczyk@googlemail.com>2021-03-13 17:31:47 +0100
commit094981b2773040c30728fefba575cdfcc48b8be2 (patch)
treee585f3b8490b94e0afd9d2ac57cfd43b1f78f1ae
parent942f5f0cb282cbc2b3fb766e3c7614e82b98dd9b (diff)
Fix create c# script after partial class type
-rw-r--r--modules/mono/csharp_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 4fca80fca0..610cecae7c 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -328,7 +328,7 @@ Ref<Script> CSharpLanguage::get_template(const String &p_class_name, const Strin
String script_template = "using " BINDINGS_NAMESPACE ";\n"
"using System;\n"
"\n"
- "public class %CLASS% : %BASE%\n"
+ "public partial class %CLASS% : %BASE%\n"
"{\n"
" // Declare member variables here. Examples:\n"
" // private int a = 2;\n"