GDScript: Call static methods in native base class

This commit is contained in:
rune-scape 2024-07-03 15:49:14 -07:00 committed by rune-scape
parent 897172fa25
commit f3c2397e34
3 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class_name TestCallNativeStatic
extends JSON
func test():
var s: GDScript = get_script()
@warning_ignore("unsafe_method_access")
print(s.stringify("test"))
print(s.call(&"stringify", "test"))
print(TestCallNativeStatic.stringify("test"))

View file

@ -0,0 +1,4 @@
GDTEST_OK
"test"
"test"
"test"