diff --git a/tutorials/scripting/c_sharp/c_sharp_exports.rst b/tutorials/scripting/c_sharp/c_sharp_exports.rst index 0e699d55b2d..01c21252289 100644 --- a/tutorials/scripting/c_sharp/c_sharp_exports.rst +++ b/tutorials/scripting/c_sharp/c_sharp_exports.rst @@ -207,13 +207,13 @@ Allow floats from -10 to 20 and snap the value to multiples of 0.2. [Export(PropertyHint.Range, "-10,20,0.2")] public float Number { get; set; } -If you add the hints "or_greater" and/or "or_lesser" you can go above +If you add the hints "or_greater" and/or "or_less" you can go above or below the limits when adjusting the value by typing it instead of using the slider. .. code-block:: csharp - [Export(PropertyHint.Range, "0,100,1,or_greater,or_lesser")] + [Export(PropertyHint.Range, "0,100,1,or_greater,or_less")] public int Number { get; set; } Allow values 'y = exp(x)' where 'y' varies between 100 and 1000 diff --git a/tutorials/scripting/gdscript/gdscript_exports.rst b/tutorials/scripting/gdscript/gdscript_exports.rst index b42f1dcc696..3220a5c1606 100644 --- a/tutorials/scripting/gdscript/gdscript_exports.rst +++ b/tutorials/scripting/gdscript/gdscript_exports.rst @@ -163,11 +163,11 @@ Allow floats from -10 to 20 and snap the value to multiples of 0.2. @export_range(-10, 20, 0.2) var k: float -The limits can be only for the slider if you add the hints "or_greater" and/or "or_lesser". +The limits can be only for the slider if you add the hints "or_greater" and/or "or_less". :: - @export_range(0, 100, 1, "or_greater", "or_lesser") + @export_range(0, 100, 1, "or_greater", "or_less") .. TODO: Document other hint strings usable with export_range.