Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Godot - How to print(dir(variable)) out the properties and methods of a class in GDScript?
I want to print the properties and methods of a class into the console with GDScript. In pythonPython, this can be done with the print(dir(variable)) method.
Is there an analogous function in GDScript?
Godot - How to print(dir(variable))
I want to print the properties and methods of a class into the console with GDScript. In python this can be done with the print(dir(variable)) method.
Is there an analogous function in GDScript?
How to print out the properties and methods of a class in GDScript?
I want to print the properties and methods of a class into the console with GDScript. In Python, this can be done with the print(dir(variable)) method.