Hello dear Godot users and developers,
I am developing a game in C# in Godot.
I use C# because I feel more fluent with it.
Sadly, I have a block point where I am not able to find by myself the solution.
To be honest, I don't understand the root cause.
I am trying to create a custom Inspector plugins as explained here : https://docs.godotengine.org/en/3.2/tutorials/plugins/editor/inspector_plugins.html#setup
I would like to have a custom UI in Inspector tab when editing a specific and custom class derivate of Node.
I was able to create a working addon as explained in documentation with EditorPlugin and EditorInspectorPlugin classes.
In my class ho derivate from EditorInspectorPlugin, in ParseBegin method, I have try to use AddCustomControl method.
But Control (in my simple tests it is a simple button) has been never displayed in Editor!?!
I have try to compile again, to restart Godot Editor and check with GD.Print if the Control is created.
So, the button node is created but it seems AddCustomControl doesn't have any effect about it.
- Is it a mistake in my source code because I didn't understood correctly the behavior of this method AddCustomControl?
- Is it a normal behavior ?
- How to replace all Properties default Controls to a new UI in Inspector tab with custom rules behind ?
Thanks in advance for your feedback and your help.
Cheers,
Sam