You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: godot-core/src/registry/property.rs
+36-9
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,24 @@ pub mod export_info_functions {
168
168
}
169
169
170
170
// We want this to match the options available on `@export_range(..)`
171
+
/// Mark an exported numerical value to use the editor's range UI.
172
+
///
173
+
/// You'll never call this function itself, but will instead use the macro `#[export(range=(...))]`, as below. The syntax is
174
+
/// very similar to Godot's [`@export_range`](https://docs.godotengine.org/en/stable/classes/class_%40gdscript.html#class-gdscript-annotation-export-range).
175
+
/// `min`, `max`, and `step` are `f32` positional arguments, with `step` being optional and defaulting to `1.0`. The rest of
176
+
/// the arguments can be written in any order. The symbols of type `bool` just need to have those symbols written, and those of type `Option<T>` will be written as `{KEY}={VALUE}`, e.g. `suffix="px"`.
0 commit comments