I was writing a C# script about what kind of enemies spawn in different levels. One easier approach I was thinking was using 2D array for this case. rows for enemy scenes, columns for level numbers. because there is currently no support for multidimensional exports for inspector. I ended up making 50 scene levels and use array of enemies for each level scenes.
An array of arrays wouldn’t work for you?
1 Like
You mean Jagged arrays? I just tested that out but Godot threw unsupported type exception.
I do not. I googled that term and I got an AI answer that gave me some BS about how to make a jagged_array
which does not exist.
@export var test: Array[Array]
I meant that.
2 Likes
This is literally what I have done for my current project, but using C# queues which unfortunately are not exportable but dont need to be in my case.
@dragonforge-dev solution is the only way currently.
Thats one issue with C# currently along with Structs as well. If they were exportable it would save a whole heap of extra code.
2 Likes