Skip to content

Commit

Permalink
Merge pull request #46968 from sboronczyk/fix-editor-plugin-mono
Browse files Browse the repository at this point in the history
Fix create c# script from editor after partial class type is necessary
  • Loading branch information
akien-mga authored Mar 13, 2021
2 parents f381ea8 + 094981b commit 1066dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mono/csharp_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1066dbc

Please sign in to comment.