0 votes
public String[,] getStats(){
        String [,] stats = new String[stat_names.Length,2];
        for (int i = 0; i< stat_names.Length; i++)
            stats[i,0] = stat_names[i];
            stats[i,1] = Convert.ToString(stat_vals[i]);
        return stats;

above the c# function in question. Function is called as usual via


The call returns [valA1, valA2, valB1, valB2] instead of [[valA1, valA2], [valB1, valB2]]

Godot version 3.4
in Engine by (12 points)

Have you tried an jagged array instead of an multidimensional array?

Hi, sorry for the delay.
Yes I have and in this case a list of empty Strings is received instead of the desired list of strings of strings.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.