Browse Source

Clarify how the "step" value behaves in GDScript exports

Hugo Locurcio 5 years ago
parent
commit
25c94ccb82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/scripting/gdscript/gdscript_exports.rst

+ 1 - 1
getting_started/scripting/gdscript/gdscript_exports.rst

@@ -92,7 +92,7 @@ Examples
     export(int, 20) var i
     export(int, 20) var i
     # Allow integer values from -10 to 20.
     # Allow integer values from -10 to 20.
     export(int, -10, 20) var j
     export(int, -10, 20) var j
-    # Allow floats from -10 to 20, with a step of 0.2.
+    # Allow floats from -10 to 20 and snap the value to multiples of 0.2.
     export(float, -10, 20, 0.2) var k
     export(float, -10, 20, 0.2) var k
     # Allow values 'y = exp(x)' where 'y' varies between 100 and 1000
     # Allow values 'y = exp(x)' where 'y' varies between 100 and 1000
     # while snapping to steps of 20. The editor will present a
     # while snapping to steps of 20. The editor will present a