瀏覽代碼

Merge pull request #2877 from Vikram1323/master

Script path in C# code is wrong.
Rémi Verschelde 5 年之前
父節點
當前提交
a57a3715db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/plugins/editor/making_plugins.rst

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

@@ -216,7 +216,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);
         }