Skip to content

Export range doesn't work with step size #413

@gamma-delta

Description

@gamma-delta
#[derive(GodotClass)]
#[class(base = Node)]
#[allow(dead_code)]
struct MyStruct {
  #[export(range = (0.05, 1.0, 0.05))]
  foo: f32,
}

This fails with error: expected identifier on the 3rd number.

The gdext docs don't say how to use step size in range at all, but I would awfully like if I was able to do this.

If it is possible, it would be nice if this was documented.

If it's not possible, it would be nice if it was implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugc: registerRegister classes, functions and other symbols to GDScript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions