godot-docs
godot-docs copied to clipboard
"icon" parameter in EditorPlugin.add_custom_type is not optional, but documentation says it is
Your Godot version
4.2.1.stable.mono
Issue description
The up-to-date-for-4.2 documentation says that the icon parameter in EditorPlugin.add_custom_type() is optional.
Adds a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed.
However, this is not an optional parameter. It's clear that it doesn't have a default value. An editor error is generated when this function is called without the icon parameter.
URL to the documentation page EditorPlugin > add_custom_type