When exporting a float with @export_range I cannot add the “or_greater” extra hint without specifying a step first. The default value for the step is (Editor) > Interface > Inspector > Default Float Step. How can I still use the “or_greater” hint and keep the step defaulting to the default float step as specified above? How can I reference this editor setting from the code?
I think your out of luck on this. Although I don’t see the problem of setting the resolution manually. I would think an exported variable like this would require some resolution control based on its context. Which the project default step could never given context.
I might have one last suggestion, but I’m not at Godot to try.
Can you place the project variable into the parameters, or does it say literals only?
I mean how badly do you need that.
if you really want to get into endless problems their is always EditorInspector and EditorInspectorPlugin.
but I really really don’t recommend going down the scope creep rabbit hole.
it’s been a about a while but I think property_edited signal then _parse_property to deal with changing the thing the user of the plug in is trying to change.
anyway it’s a place to start.
I am being unfair you are only changing one thing perhaps I just tried to do to much and got in over my head.
I don’t know how you can get the default value for this in GDScript. But I think you should at least be able to work around this “constant expression” error by using _get, _set, and _get_property_list instead of @export_range.
And I think it may alternatively be possible using _validate_property?