6 ms·
Presumably because GDScript doesn't support structs.
by Narishma 3y ago
Presumably because GDScript doesn't support structs.
- nextaccountic 3y agoIn this sense it's like Lua right? And people don't complain (much) about using Lua in gamedev
- TazeTSchnitzel 3y agoIt does support classes with strongly typed fields, though, which are the next best thing. It's just a poorly designed API, it's not a reflection of language limitations.
- harpiaharpyja 3y agoExactly. Why can't it return a RaycastResult or whatever.
- krapp 3y agoIf you want "structs" in GDScript, use Resources. I know it's not the same thing at all but it's as close as you're going to get.