You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.
Describe the bug
While working on #169 i noticed c# fails to pull lua callables.
To Reproduce
The following CS class gets a null Callable. While the equivalent GDScript works as expected.
usingGodot;usingSystem;publicpartialclassNode2D:Godot.Node2D{privateLuaApilua=newLuaApi();publicoverridevoid_Ready(){LuaErrorerror=lua.DoString(@" function test() return ""This is a test message."" end ");if(error!=null&&error.Message!=""){GD.Print("An error occurred calling DoString.");GD.Print("ERROR %d: %s",error.Type,error.Message);}varval=lua.PullVariant("test");if(val.GetType()==typeof(LuaError)){GD.Print("ERROR %d: %s",error.Type,error.Message);return;}Callabletest=val.AsCallable();Godot.Collections.ArrayParams=new();GD.Print(test.Call(Params));}}
Describe the bug
While working on #169 i noticed c# fails to pull lua callables.
To Reproduce
The following CS class gets a null Callable. While the equivalent GDScript works as expected.
Expected behavior
A valid Callable returned
Enviromint:
The text was updated successfully, but these errors were encountered: