0 votes

is there a way to get function arguments and its types?


func asd(a:String, b:int):


print(get_func_args(self, "asd"))


in my case my game will generate lots of objects that will call funcrefs with arguments, probably i will need to change the functions argements some times, then i do not need to check all objects that are using them.

Godot version 3.3.2
in Engine by (199 points)

1 Answer

0 votes
Best answer

GScript does not support "reflection". You have to solve this another way.

by (4,084 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.