We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e6959 commit d5d7a6eCopy full SHA for d5d7a6e
addons/extendable_inspector_for_cs/example/SayYourName/SayYourName.cs
@@ -0,0 +1,12 @@
1
+using Godot;
2
+
3
+[Tool]
4
+public partial class SayYourName : Node2D {
5
+ public void ExtendInspectorBegin(ExtendableInspector inspector) {
6
+ Button button = new() {
7
+ Text = "Say your name"
8
+ };
9
+ button.Pressed += () => GD.Print(Name);
10
+ inspector.AddCustomControl(button);
11
+ }
12
+}
addons/extendable_inspector_for_cs/example/SayYourName/SayYourName.tscn
@@ -0,0 +1,6 @@
+[gd_scene load_steps=2 format=3 uid="uid://ctp20bfwuqytg"]
+[ext_resource type="Script" path="res://addons/extendable_inspector_for_cs/example/SayYourName/SayYourName.cs" id="1_l477p"]
+[node name="Node2DWithName" type="Node2D"]
+script = ExtResource("1_l477p")
0 commit comments