Browse Source

Fix create c# script after partial class type

sboronczyk 4 years ago
parent
commit
094981b277
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/csharp_script.cpp

+ 1 - 1
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"
 	String script_template = "using " BINDINGS_NAMESPACE ";\n"
 							 "using System;\n"
 							 "using System;\n"
 							 "\n"
 							 "\n"
-							 "public class %CLASS% : %BASE%\n"
+							 "public partial class %CLASS% : %BASE%\n"
 							 "{\n"
 							 "{\n"
 							 "    // Declare member variables here. Examples:\n"
 							 "    // Declare member variables here. Examples:\n"
 							 "    // private int a = 2;\n"
 							 "    // private int a = 2;\n"