Allow adding a unit hint when exporting variables #4839
mieldepoche
started this conversation in
Scripting
Replies: 1 comment 2 replies
-
I think you can already specify a custom hint string with annotations somehow. I don't remember the syntax though; godotengine/godot#62713 may have documented this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In godot 4 some exports have units hints:

AFAIK it's not possible to specify your own unit hints for exports yet.
What about
@export("unit hint") var foo
?The hint would be shared among vector components if needed.
Examples:
Beta Was this translation helpful? Give feedback.
All reactions