Maybe add a API to DynamicFunction to generate required ArgList? #16566
Replies: 1 comment
-
Unfortunately we can't set arguments by name because most of the time those aren't actually set unless the However, we could potentially create a method that returns a We'll have to design such a system with function overloading (#15074) in mind, though, since that's on my agenda for 0.16 function reflection. |
Beta Was this translation helpful? Give feedback.
-
bevy
https://bevyengine.org/news/bevy-0-15/#function-reflection
When reading this, it's feeling like error prone to hand craft the arguments list, while we already have the
FunctionInfo
.I imagine something like
DynamicFunction::newArgs
would return the correct crafted argument list for me (which might be adynamic type
).for example:
I'm not a bevy / rust user but a big fan of bevy😉. I'm currently a game developer using
UnrealEngine
.unreal
I happen to build something similar recently with things in Unreal: creating a task object to call any reflected function(
UFUNCTION
) with arguments specified in parameters(FInstancedPropertyBag
similar todynamic type
) in the unreal editor.Beta Was this translation helpful? Give feedback.
All reactions