Passing Classes as arguments

Godot Version

4.4

Question

I am coding in GDScript, and I’m wondering what I should use as the type when trying to pass the class itself as an argument (not an object of that type), e.x.

var foo: type = SomeClass

func bar() -> type:
     return SomeOtherClass

GDScript does not have that level of meta programming

2 Likes