Skip to content

LuaFunction closures cant be connected to a Godot Signal #196

@howhow2315

Description

@howhow2315

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions