If I use some CollisionShape2D
, I can add some shape, and then I have access to a very nice interactive way to edit the shape. For exemple for a RectangleShape2D
it looks like :

However it does not work, if I export such shape in my own script :
var export(Shape2D) my_shape
I can create a new shape in the editor, but not interactively edit it. So, how can I enable this feature for my shapes ?