- Notifications
You must be signed in to change notification settings - Fork1
An EditorPlugin class with helpful functions to make plugins easily
License
AnidemDex/Godot-PluginTemplate
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
AnEditorPlugin class with helpful functions to make plugins easily.
- Download
godot_plugin.gdfile. You can download it directly from this repository or from thereleasessection. - Put it inside your plugin folder and replace
extends EditorPluginwithextends "res://addons/<your_plugin_folder>/godot_plugin.gd"
This script class aims to help plugins developers in their task of creating plugins, wrapping common tasks in functions, adding util nodes and managing the plugin data for them.That's why this class includes:
APopup node that appears when you need it, displaying information of the plugin and the nodes that you pass to it, fully customizable!
A little button near Godot's version button to display the version of your plugin. Custom information and functions can be added.
Show, modify and update plugin's data directly in the editor, as if it were any commonObject. Include your own data for your users and stop complaining about how to save that information!
You can register nodes as plugin nodes to avoid memory leaks. Do your work, and let the plugin handle the cleanup for you!
Some methods were wrapped around this idea, to save some time while making custom inspectors/docks/editors.
Get other active plugins and use them! Ideal if you want to make weak dependency and/or want to use other plugin's features.
⚠️ This only works for plugins that extends this script.
extends"res://addons/my_plugin/godot_plugin.gd"func_enter_tree()->void:# Shows version buttonshow_version_button()# Default virtual methods are used in godot_plugin.gd# Instead, use the same method with a _ prefixfunc_enable_plugin()->void:# Shows welcome nodeshow_welcome_node()func_ready()->void:print("Hello! I'm a%s plugin"%get_plugin_real_name())
You can see more examples onexample branch
About
An EditorPlugin class with helpful functions to make plugins easily
Resources
License
Uh oh!
There was an error while loading.Please reload this page.


