Hi, What the use of the keyword [Tool] in C#?

#region Assembly GodotSharp, Version=1.0.7333.4671, Culture=neutral, PublicKeyToken=null
// GodotSharp.dll
#endregion

using System;

namespace Godot
{
    [AttributeUsage(AttributeTargets.Class)]
    public class ToolAttribute : Attribute
    {
        public ToolAttribute();
    }
}

It is the same of in iGDscript? Can I see an example pls?

I found the answer by myself:

It work like in GDscript. Here C# example:

using Godot;
using System;

[Tool]
public class Node2D : Godot.Node2D
{
    public override void _Ready()
    {
       GD.Print("Hello world!");
    }

    public void _on_Button_pressed()
    {
        GetNode<Label>("Label").Text = "Hello world";
    }

    public override void _Process(float delta)
    {
        // GD.Print("ok");
    }
}

yeah it's kind of nice in that you can have c# code run in the editor, but modifying the code doesn't propogate to the editor very well unfortunately.

3 years later