Skip to content

Lua functions can't be used as Callable #219

@illarn

Description

@illarn

I couldn't figure out how to connect a lua function to a godot signal, e.g.

  node.resized:connect(function() end)

gives invalid argument error in to_variant()

I've seen #196, but solution given there only works for lua functions accessed in godot.
If there is an already working solution I'd propose adding into the readme (since it's a pretty common pattern), if not, having a way to convert lua functions to callable would be much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions