tutorials/scripting/gdscript/gdscript_exports #143
Replies: 4 comments 5 replies
-
What about |
Beta Was this translation helpful? Give feedback.
-
There's no mention that a description text can be added to exported vars starting the preceding line with ##. ## This is my description text
@export var a: int |
Beta Was this translation helpful? Give feedback.
-
What if you want to listen to a value being changed for exported properties, for instance a bool value changing from true to false. And preferably outside of |
Beta Was this translation helpful? Give feedback.
-
What about if you only want to specify a min or a max to a value instead of a range? For example, if I am exporting a variable called max_health, I want to set the min to 1 (as 0 for max health makes no sense), but I don't want to provide an upper limit. How would I do that? It seems like an @export_min and @export_max might be nice or a keyword you can use in the @export_range (note that INF won't work for ints I believe). |
Beta Was this translation helpful? Give feedback.
-
tutorials/scripting/gdscript/gdscript_exports
In Godot, class members can be exported. This means their value gets saved along with the resource (such as the scene) they're attached to. They will also be available for editing in the property e...
https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_exports.html
Beta Was this translation helpful? Give feedback.
All reactions