Optional variant list argument for func
Open
c: register
feature
- Dominant language
- Rust
- Stars
- 5.2k
- Forks
- 312
- Avg merge
- 12h 59m
- Merged PRs (30d)
- 9
Description
I'm trying to get a varying list of arguments passed from gdscript. I couldn't find any other way to make it work than a plain VarArray. When using VarArray, I can't make it optional with #[opt], since Variant isn't GodotImmutable. I'm making this for an mlua API, and having to pass an empty array when no arguments are needed is kinda dumb!
So I'm looking for a way to pass a flexible amount of Variants into Rust (including none at all), in the best case in the same way as a gdscript ... argument.
Contributor guide
Assessment
This issue has not been assessed yet.