Registers all custom classes in Godot project (Godot 4.X) (Inspired from https://github.com/Atlinx/Godot-Mono-CustomResourceRegistry)
- Download the repo via .zip file
- Create a folder addons/GodotCustomTypes in root folder of your godot project
- Unzip containings into addons/GodotCustomTypes
- Build the project
- Enable the plugin in project settings
- Press CCR button on top right corner - it will refresh registrations
It will load all types derived from Node and Resource automatically After you build projset is built, CCR button on top right corner
Use [MuteTypeLoading] attribute to mute your custom class
Use [Icon] attribute (it comes from Godot) to provide path to your icon. It should be full path defined in Godot resources namespace (ex. [Icon("res://addons/Beehave/Icons/blackboard.svg")])
Unfortunatelly, Godot does not support custom base classes. So when you create your own hierarchy of classes, they will be flatened like they would be derived from nearest Godot type:
That will appear in node explorer as:
You can declare only one class derived from node/resource per file. Name of the class should match name of its file. Otherwise, the type will be invisible in type menu.