gdext icon indicating copy to clipboard operation
gdext copied to clipboard

Can't create callables from static methods

Open LeaoLuciano opened this issue 2 years ago • 0 comments

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

LeaoLuciano avatar Nov 12 '23 12:11 LeaoLuciano