Skip to content

Conversation

@CactiChameleon9
Copy link
Contributor

@CactiChameleon9 CactiChameleon9 commented Jul 8, 2023

In this page: https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_exports.html#limiting-editor-input-ranges

The docs say to use the keyword "or_lesser" for ranges that can go below what is specified. This was changed in Godot4 and therefore should be "or_less"

I have also updated the C# version (I am assuming they were both changed, but I have not tested this)

This might need to be backported to previous doc versions?

@raulsntos
Copy link
Member

or_lesser was renamed to or_less in 4.0:

I have also updated the C# version (I am assuming they were both changed, but I have not tested this)

Yes, it also applies to C#. The C# export attributes use the same hint strings than whatever Core defines. Thank you for also updating the C# documentation!

@raulsntos raulsntos added bug topic:dotnet topic:gdscript area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.0 cherrypick:4.1 labels Jul 8, 2023
@skyace65 skyace65 merged commit 24980a5 into godotengine:master Jul 9, 2023
@skyace65
Copy link
Contributor

skyace65 commented Jul 9, 2023

Thanks! And congrats on your first merged PR!

@CactiChameleon9
Copy link
Contributor Author

Thank you for merging it - that was surprisingly painless :)

mhilbrunner pushed a commit that referenced this pull request Aug 1, 2023
Fix mention of Godot3's or_lesser for export_range
mhilbrunner pushed a commit that referenced this pull request Aug 1, 2023
Fix mention of Godot3's or_lesser for export_range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug topic:dotnet topic:gdscript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants