How to add option to default Inspector Image Editor Property?
I have started playing around with extending the Godot editor. For starters, I am not implementing any of the backing logic yet, I'm just trying to get the IDE integration right. My current experiment is to add an Edit button to the
image property of an
ImageTexture. Using the Inspector Plugins tutorial I managed to do just that:
This works fine as an initial iteration, as it allows me to edit the image property with my custom editor while also maintaining the default editor in case I just want to load an existing image. My question is the following:
Can I extend the default Editor Property to incorporate an extra Edit button instead of adding a completely independent Edit button?
This would make the IDE integration much more professional. Rather than just having the property duplicated in the inspector, once with the custom editor and once with the default one, it would seem like it was part of the IDE all along. Some default Editor Properties already have such an Edit capability (e.g. the
shape property of a
CollisionShape2D), so there must be a way to integrate into that as well, or is it only possible from the C++ side of the editor?
Thanks in advance!