Simple Godot 4 plugin template in GDScript.
If you want to use C# version of template go to Godot Plugin Template in C#.
- Create project in Godot 4.
- Create
res://addons
directory. - Open Terminal or CMD and
cd
into addons directory, for examplecd C:\godot-projects\my-project-1
. - Clone this repository:
git clone https://github.com/eweninja/godot-plugin-template-gdscript
. - Rename directory as you want to.
Minimal requirement is to have two files in plugin folder:
- main script, for example
plugin.gd
- config file
plugin.cfg
In config file you have to specify the name, description, author, version and base script.
In the plugin scripts you have to add @tool
keyword.