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.
Node::get_configuration_warning
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!
Blaise Bernier | 2018-05-03 00:55
As of 3.1 you can do this by adding _get_configuration_warning to your GDScript:
_get_configuration_warning
tool # must be a tool script to work extends Node export(String) var name:String func _get_configuration_warning(): if not name: return 'Name not set' return ''