Skip to content

Can't create callables from static methods #481

Closed
@LeaoLuciano

Description

@LeaoLuciano

Currently there is no way to create a callable (from gdext or gdscript) from a static method of a gdext's class.

Gdext's Callable has no constructor for static methods (Callable).

Gdscript returns an error when trying to use a callable from a static method:

func _ready():
	Test.static_method()       
	Test.static_method.call()  # Error

MRP

static_callable.zip

Steps

Compile rust code in rust/
Run main.tscn

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: coreCore componentsfeatureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions