Skip to content

"@export_range" step parameter is shown to be 1.0 as default #108001

Closed as not planned
@ArtyIF

Description

@ArtyIF

Tested versions

  • Reproducible in v4.5.beta1.official [46c495c]
  • Not tested explicitly on earlier versions, but I did see the same thing on them

System information

Godot v4.5.beta1 - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Thu, 19 Jun 2025 14:41:01 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated AMD Radeon RX 570 Series (RADV POLARIS10) - AMD Ryzen 7 5700X 8-Core Processor (16 threads) - 31.24 GiB memory

Issue description

When using the @export_range annotation, the hint shows that the default value of step is 1.0, which isn't true. The default step value (which I also saw being used in the editor's code) is 0.001. Using 1.0 explicitly makes the step actually 1.0, so this doesn't really make much sense.

Image

Steps to reproduce

  1. Create an empty project
  2. Create a GDScript and open it in the editor's script view
  3. Write @export_range(

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions