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
This issue was done and merged a long time ago. But there's still issue with it. #81783
This doesn't work in tools scripts. Both GDScript and C# using tool attribute. Same error: Parse Error: Static function "CreateNewDB()" not found in base "CSharpScript".
C#:
usingGodot;[Tool][GlobalClass]publicpartialclassDBHAutoload:GodotObject{publicstaticvoidCreateNewDB(stringpath,stringdbName,stringnamespacename,boolgen_class,stringclass_name,booladd_default_fields){varcontent=".. insert content here ...";varfile=FileAccess.Open(path,FileAccess.ModeFlags.Write);file.StoreString(content);file.Close();}}
Tested versions
System information
Godot v4.2.1.stable.mono - Windows 10.0.22000 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2050 (NVIDIA; 31.0.15.4618) - 13th Gen Intel(R) Core(TM) i5-13420H (12 Threads)
Issue description
This issue was done and merged a long time ago. But there's still issue with it.
#81783
This doesn't work in tools scripts. Both GDScript and C# using tool attribute. Same error:
Parse Error: Static function "CreateNewDB()" not found in base "CSharpScript".
C#:
GD:
Steps to reproduce
Minimal reproduction project (MRP)
CSharpTestBed.zip
The text was updated successfully, but these errors were encountered: