mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Script path in C# code is wrong.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user