its because to_variant cant tell apart the use of the conversion, so it cant say "oh a signal wants this? yeah we'll convert the LuaFunction->to_callable()" but instead always neatly wraps it into the Object which is fine
this problem is stupid unfortunately and i seriously cant think of a way to approach it other than making something like a LuaCallable object or somehow making to_variant smart which'd be a bad idea
personally i just wrote a simple lua signal class in lua and am using that
its because to_variant cant tell apart the use of the conversion, so it cant say "oh a signal wants this? yeah we'll convert the LuaFunction->to_callable()" but instead always neatly wraps it into the Object which is fine
this problem is stupid unfortunately and i seriously cant think of a way to approach it other than making something like a LuaCallable object or somehow making to_variant smart which'd be a bad idea
personally i just wrote a simple lua signal class in lua and am using that