Aaron Franke 0ae09b7e5a Overhaul silly material creator plugin demo (#1261) пре 2 месеци
..
README.md 31d1c0c112 Remove old and unused project settings, update various demos for 4.2 (#1024) пре 1 година
heart.gd bac1e69164 Use static typing in all demos (#1063) пре 1 година
heart.gd.uid 14fcc0e133 Update all demo projects for Godot 4.5 and use path-deterministic UIDs (#1258) пре 2 месеци
heart.png 51c0f3abb8 Refactor the plugin demos to be inside of a project for convenience пре 5 година
heart.png.import 14fcc0e133 Update all demo projects for Godot 4.5 and use path-deterministic UIDs (#1258) пре 2 месеци
heart_plugin.gd 0ae09b7e5a Overhaul silly material creator plugin demo (#1261) пре 2 месеци
heart_plugin.gd.uid 14fcc0e133 Update all demo projects for Godot 4.5 and use path-deterministic UIDs (#1258) пре 2 месеци
plugin.cfg 51c0f3abb8 Refactor the plugin demos to be inside of a project for convenience пре 5 година

README.md

Custom Node Plugin Demo

This plugin demo shows one way to create a custom node type in Godot. For more information, see this documentation article: https://docs.godotengine.org/en/latest/tutorials/plugins/editor/making_plugins.html#a-custom-node

A custom node type:

  • Derives from an existing node type.

  • Shows up in the type list when adding a new node.

  • Has a script attached to add new behavior.

  • May have a custom icon.

The way it works in this plugin is using the add_custom_type and remove_custom_type in the plugin script file. Using this method you can specify any name, base type, script, and icon for your custom node.

There is also another way to add custom node types, which is using the class_name keyword in a script, or using the [GlobalClass] attribute above a class declaration in C#.