Add default access modifier for all properties
Araraura opened this issue · comments
Is it possible to add a feature that will change the default access modifier for all properties? I want to have everything private by default and simply change them to protected or public when I need them
I haven't been actively using this addon in my projects, so it's unlikely that I'll have time to implement and fully test this as a feature.
But as a workaround, you can update line 43
in addons/private-exports/lib/core.gd
to change the default value:
godot-private-exports/addons/private-exports/lib/core.gd
Lines 33 to 43 in 48d1ed3
If that doesn't work, you might also need to update this line in addons/private-exports/controls/access_modifier_button.gd
:
This one change should set the default modifier for all unset properties going forward, but for scenes that you've already opened, it might not work.