-
-
Notifications
You must be signed in to change notification settings - Fork 278
Open
Labels
c: registerRegister classes, functions and other symbols to GDScriptRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the libraryAdds functionality to the library
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: registerRegister classes, functions and other symbols to GDScriptRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the libraryAdds functionality to the library