Replies: 1 comment
-
So yea I dont believe the GDM compiler currently supports lambda functions, though more generally that would probably be bad practice anyway. Ideally, as much programming logic is abstracted as possible in order to optimize the writing workflow. (Swapping back and forth between programming and writing is not ideal) Code is also a lot more maintainable when functions are plainly written, rather than hidden inline. (If you rename a variable or modify the functionality, you have to change all instances rather than one) In this case a Regardless, whether or not lambda functions are to be supported I think updating the docs that they are currently not supported is a good idea. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to somehow use lambda style functions as arguments?
I was previously using this method to close my speech box, before I added the plugin, I was changing character state after dialog closing animation is completed since my character could teleport and it might leave dialog hang out alone for a second
I would want to use the same approach when invoking mothods from my dialogue but there's a syntax error so I'm not sure if it's easily supportable
It causes
Unexpected bracket
errorOverall I was initially thinking that any gdscript code would work here and couldn't understand why print() doesn't work, would be nice to expand documentation with limitations
Beta Was this translation helpful? Give feedback.
All reactions