godot-demo-projects/plugins/addons/custom_node
Aaron Franke 51c0f3abb8
Refactor the plugin demos to be inside of a project for convenience
2020-03-25 23:28:42 -04:00
..
README.md Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
heart.gd Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
heart.png Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
heart.png.import Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
heart_icon.png Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
heart_icon.png.import Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
heart_plugin.gd Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00
plugin.cfg Refactor the plugin demos to be inside of a project for convenience 2020-03-25 23:28:42 -04:00

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. However, the class_name system is newer, may change in the future, and it is not available for C# or VisualScript.