I have an array of lists containing tuples as I'm creating an adjacency list, (I know very confusing) and I want to do node.Get("ArrayOfTupleLists") and convert that godot object/variant thing to a C# Array of tuple lists.

How on earth do I do this?

  • Unfortunately I never figured out how to do this. Instead I completely changed my list so instead it was a Vector2 array and didn't store the tuples anymore. This way I could cast it back from node.Get to a Vector2 array again. As far as I know, Godot only supports 1d arrays from a very limited number of types: Color, Vector3, Vector2, String, Real, Int, Byte.

Unfortunately I never figured out how to do this. Instead I completely changed my list so instead it was a Vector2 array and didn't store the tuples anymore. This way I could cast it back from node.Get to a Vector2 array again. As far as I know, Godot only supports 1d arrays from a very limited number of types: Color, Vector3, Vector2, String, Real, Int, Byte.