2
0
Эх сурвалжийг харах

Merge pull request #7193 from wlsnmrk/plugin-script-path

Fix file-path strings in C# for plugin tutorial
Max Hilbrunner 2 жил өмнө
parent
commit
4dfaee8805

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

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