I'm building a plugin and I want one of my custom nodes to show the warning sign when some of the properties are not set properly.
Is there any way to do that?
There is a virtual method Node::get_configuration_warning in cpp.
but it's not exposed to gdscript.
I'm not sure if there is any workaround for it.
you can open issue and discuss about this on github.
I opened the issue!
As of 3.1 you can do this by adding _get_configuration_warning to your GDScript:
tool # must be a tool script to work
export(String) var name:String
if not name:
return 'Name not set'