Browse Source

Script path in C# code is wrong.

vicky 5 years ago
parent
commit
4022e9bdb3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/plugins/editor/making_plugins.rst

+ 1 - 1
tutorials/plugins/editor/making_plugins.rst

@@ -211,7 +211,7 @@ dialog. For that, change the ``custom_node.gd`` script to the following:
         {
             // Initialization of the plugin goes here
             // Add the new type with a name, a parent type, a script and an icon
-            var script = GD.Load<Script>("addons/MyButton.cs");
+            var script = GD.Load<Script>("MyButton.cs");
             var texture = GD.Load<Texture>("icon.png");
             AddCustomType("MyButton", "Button", script, texture);
         }