Merge pull request #6532 from AndrewPerson/patch-1

Fixed incorrect Texture type in example
This commit is contained in:
Yuri Sizov
2022-12-30 20:27:28 +03:00
committed by GitHub
+1 -1
View File
@@ -250,7 +250,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>("MyButton.cs");
var texture = GD.Load<Texture>("icon.png");
var texture = GD.Load<Texture2D>("icon.png");
AddCustomType("MyButton", "Button", script, texture);
}